pub struct AuthenticatedDbRequest {
pub root_id: ID,
pub identity: SigKey,
pub op: DatabaseOp,
}Expand description
Payload of an AuthenticatedDb service request.
Bundles the database scope (root_id) and identity claim (identity) with
the DatabaseOp to run. Boxed inside ServiceRequest::AuthenticatedDb to
keep the top-level enum’s stack footprint flat — SigKey and
DatabaseOp::SubmitSignedEntry are large.
Fields§
§root_id: IDRoot entry of the database this op targets (auth-settings lookup +
the implicit tree scope every DatabaseOp carries by construction).
identity: SigKeyIdentity claim; verified against the connection’s session keyset before dispatch.
op: DatabaseOpDatabase operation to execute.
Trait Implementations§
Source§impl Clone for AuthenticatedDbRequest
impl Clone for AuthenticatedDbRequest
Source§fn clone(&self) -> AuthenticatedDbRequest
fn clone(&self) -> AuthenticatedDbRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthenticatedDbRequest
impl Debug for AuthenticatedDbRequest
Source§impl<'de> Deserialize<'de> for AuthenticatedDbRequest
impl<'de> Deserialize<'de> for AuthenticatedDbRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuthenticatedDbRequest
impl RefUnwindSafe for AuthenticatedDbRequest
impl Send for AuthenticatedDbRequest
impl Sync for AuthenticatedDbRequest
impl Unpin for AuthenticatedDbRequest
impl UnsafeUnpin for AuthenticatedDbRequest
impl UnwindSafe for AuthenticatedDbRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more