Struct swagger::XSpanIdString[][src]

pub struct XSpanIdString(pub String);

Wrapper for a string being used as an X-Span-ID.

Implementations

impl XSpanIdString[src]

pub fn get_or_generate<T>(req: &Request<T>) -> Self[src]

Extract an X-Span-ID from a request header if present, and if not generate a new one.

Trait Implementations

impl Clone for XSpanIdString[src]

impl Debug for XSpanIdString[src]

impl Default for XSpanIdString[src]

impl Display for XSpanIdString[src]

impl<C> Has<XSpanIdString> for ContextBuilder<XSpanIdString, C>[src]

impl<C: Has<XSpanIdString>> Has<XSpanIdString> for ContextBuilder<Option<AuthData>, C>[src]

impl<C: Has<XSpanIdString>> Has<XSpanIdString> for ContextBuilder<Option<Authorization>, C>[src]

impl<C> Pop<XSpanIdString> for ContextBuilder<XSpanIdString, C>[src]

type Result = C

The type that remains after the value has been popped.

impl<C> Pop<XSpanIdString> for ContextBuilder<Option<AuthData>, C> where
    C: Pop<XSpanIdString>, 
[src]

type Result = ContextBuilder<Option<AuthData>, C::Result>

The type that remains after the value has been popped.

impl<C> Pop<XSpanIdString> for ContextBuilder<Option<Authorization>, C> where
    C: Pop<XSpanIdString>, 
[src]

type Result = ContextBuilder<Option<Authorization>, C::Result>

The type that remains after the value has been popped.

impl Push<XSpanIdString> for EmptyContext[src]

type Result = ContextBuilder<XSpanIdString, Self>

The type that results from adding an item.

impl<C, T> Push<XSpanIdString> for ContextBuilder<T, C>[src]

type Result = ContextBuilder<XSpanIdString, Self>

The type that results from adding an item.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<B> NotFound<B> for B where
    B: Default
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.