[][src]Struct openapi_context::XSpanId

pub struct XSpanId(pub String);

Wrapper for a string being used as an x-span-id.

Methods

impl XSpanId[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 XSpanId[src]

impl Debug for XSpanId[src]

impl Default for XSpanId[src]

impl Display for XSpanId[src]

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

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

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

impl Header for XSpanId[src]

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

type Result = C

The type that remains after the value has been popped.

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

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

The type that remains after the value has been popped.

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

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

The type that remains after the value has been popped.

impl Push<XSpanId> for EmptyContext[src]

type Result = ContextBuilder<XSpanId, Self>

The type that results from adding an item.

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

type Result = ContextBuilder<XSpanId, Self>

The type that results from adding an item.

Auto Trait Implementations

impl RefUnwindSafe for XSpanId

impl Send for XSpanId

impl Sync for XSpanId

impl Unpin for XSpanId

impl UnwindSafe for XSpanId

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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.