Struct swagger::XSpanIdString
source · [−]pub struct XSpanIdString(pub String);
Expand description
Wrapper for a string being used as an X-Span-ID.
Tuple Fields
0: String
Implementations
Extract an X-Span-ID from a request header if present, and if not generate a new one.
Trait Implementations
Set the value.
Get an immutable reference to the value.
Get a mutable reference to the value.
Set the value.
Get an immutable reference to the value.
Get a mutable reference to the value.
Set the value.
Get an immutable reference to the value.
Get a mutable reference to the value.
impl<C> Pop<XSpanIdString> for ContextBuilder<Option<AuthData>, C> where
C: Pop<XSpanIdString>,
impl<C> Pop<XSpanIdString> for ContextBuilder<Option<AuthData>, C> where
C: Pop<XSpanIdString>,
impl<C> Pop<XSpanIdString> for ContextBuilder<Option<Authorization>, C> where
C: Pop<XSpanIdString>,
impl<C> Pop<XSpanIdString> for ContextBuilder<Option<Authorization>, C> where
C: Pop<XSpanIdString>,
type Result = ContextBuilder<Option<Authorization>, C::Result>
type Result = ContextBuilder<Option<Authorization>, C::Result>
The type that remains after the value has been popped.
type Result = ContextBuilder<XSpanIdString, Self>
type Result = ContextBuilder<XSpanIdString, Self>
The type that results from adding an item.
Inserts a value.
type Result = ContextBuilder<XSpanIdString, Self>
type Result = ContextBuilder<XSpanIdString, Self>
The type that results from adding an item.
Inserts a value.
Auto Trait Implementations
impl RefUnwindSafe for XSpanIdString
impl Send for XSpanIdString
impl Sync for XSpanIdString
impl Unpin for XSpanIdString
impl UnwindSafe for XSpanIdString
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more