Struct swagger::XSpanIdString [−][src]
pub struct XSpanIdString(pub String);
Wrapper for a string being used as an X-Span-ID.
Methods
impl XSpanIdString
[src]
impl XSpanIdString
pub fn get_or_generate(req: &Request) -> Self
[src]
pub fn get_or_generate(req: &Request) -> Self
Extract an X-Span-ID from a request header if present, and if not generate a new one.
Trait Implementations
impl<C: Has<XSpanIdString>> Has<XSpanIdString> for ContextBuilder<Option<AuthData>, C>
[src]
impl<C: Has<XSpanIdString>> Has<XSpanIdString> for ContextBuilder<Option<AuthData>, C>
fn set(&mut self, item: XSpanIdString)
[src]
fn set(&mut self, item: XSpanIdString)
Set the value.
fn get(&self) -> &XSpanIdString
[src]
fn get(&self) -> &XSpanIdString
Get an immutable reference to the value.
fn get_mut(&mut self) -> &mut XSpanIdString
[src]
fn get_mut(&mut self) -> &mut XSpanIdString
Get a mutable reference to the value.
impl<C> Pop<XSpanIdString> for ContextBuilder<Option<AuthData>, C> where
C: Pop<XSpanIdString>,
[src]
impl<C> Pop<XSpanIdString> for ContextBuilder<Option<AuthData>, C> where
C: Pop<XSpanIdString>,
type Result = ContextBuilder<Option<AuthData>, C::Result>
The type that remains after the value has been popped.
fn pop(self) -> (XSpanIdString, Self::Result)
[src]
fn pop(self) -> (XSpanIdString, Self::Result)
Extracts a value.
impl<C: Has<XSpanIdString>> Has<XSpanIdString> for ContextBuilder<Option<Authorization>, C>
[src]
impl<C: Has<XSpanIdString>> Has<XSpanIdString> for ContextBuilder<Option<Authorization>, C>
fn set(&mut self, item: XSpanIdString)
[src]
fn set(&mut self, item: XSpanIdString)
Set the value.
fn get(&self) -> &XSpanIdString
[src]
fn get(&self) -> &XSpanIdString
Get an immutable reference to the value.
fn get_mut(&mut self) -> &mut XSpanIdString
[src]
fn get_mut(&mut self) -> &mut XSpanIdString
Get a mutable reference to the value.
impl<C> Pop<XSpanIdString> for ContextBuilder<Option<Authorization>, C> where
C: Pop<XSpanIdString>,
[src]
impl<C> Pop<XSpanIdString> for ContextBuilder<Option<Authorization>, C> where
C: Pop<XSpanIdString>,
type Result = ContextBuilder<Option<Authorization>, C::Result>
The type that remains after the value has been popped.
fn pop(self) -> (XSpanIdString, Self::Result)
[src]
fn pop(self) -> (XSpanIdString, Self::Result)
Extracts a value.
impl Debug for XSpanIdString
[src]
impl Debug for XSpanIdString
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for XSpanIdString
[src]
impl Clone for XSpanIdString
fn clone(&self) -> XSpanIdString
[src]
fn clone(&self) -> XSpanIdString
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for XSpanIdString
[src]
impl Default for XSpanIdString
fn default() -> XSpanIdString
[src]
fn default() -> XSpanIdString
Returns the "default value" for a type. Read more
impl Display for XSpanIdString
[src]
impl Display for XSpanIdString
Auto Trait Implementations
impl Send for XSpanIdString
impl Send for XSpanIdString
impl Sync for XSpanIdString
impl Sync for XSpanIdString