pub struct RequestContext {
pub authenticated_sender: Option<String>,
pub local: Option<String>,
pub resolved: ResolvedParties,
}Available on crate feature
server only.Expand description
Context handed to every spec handler — the transport-authenticated peer (when present), convenience accessors for the inbound document’s metadata, and the SPEC §4.8.1-resolved party identities.
Fields§
§authenticated_sender: Option<String>VID of the transport-authenticated sender, if any. Equivalent to
resolved.issuer when the in-band issuer is absent and the
transport authenticated a peer; preserved separately so handlers
can audit-log the distinction between in-band and derived.
local: Option<String>VID of the local party serving this request.
resolved: ResolvedPartiesSPEC §4.8.1-resolved party identities (in-band wins over
transport-derived; transport fills in absent in-band values).
Handlers can use this directly instead of re-running
TransportHandler::resolve_parties.
Trait Implementations§
Source§impl Clone for RequestContext
impl Clone for RequestContext
Auto Trait Implementations§
impl Forget for RequestContext
impl Freeze for RequestContext
impl Move for RequestContext
impl RefUnwindSafe for RequestContext
impl Send for RequestContextwhere
RawVecInner: Send,
impl Sync for RequestContextwhere
RawVecInner: Sync,
impl Unpin for RequestContext
impl UnsafeUnpin for RequestContext
impl UnwindSafe for RequestContextwhere
RawVecInner: UnwindSafe,
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