[−][src]Struct swagger::XSpanIdString
Wrapper for a string being used as an X-Span-ID.
Methods
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]
fn clone(&self) -> XSpanIdString
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn set(&mut self, item: XSpanIdString)
[src]
fn get(&self) -> &XSpanIdString
[src]
fn get_mut(&mut self) -> &mut XSpanIdString
[src]
impl<C: Has<XSpanIdString>> Has<XSpanIdString> for ContextBuilder<Option<AuthData>, C>
[src]
fn set(&mut self, item: XSpanIdString)
[src]
fn get(&self) -> &XSpanIdString
[src]
fn get_mut(&mut self) -> &mut XSpanIdString
[src]
impl<C: Has<XSpanIdString>> Has<XSpanIdString> for ContextBuilder<Option<Authorization>, C>
[src]
fn set(&mut self, item: XSpanIdString)
[src]
fn get(&self) -> &XSpanIdString
[src]
fn get_mut(&mut self) -> &mut XSpanIdString
[src]
impl<C> Pop<XSpanIdString> for ContextBuilder<XSpanIdString, C>
[src]
type Result = C
The type that remains after the value has been popped.
fn pop(self) -> (XSpanIdString, Self::Result)
[src]
impl<C> Pop<XSpanIdString> for ContextBuilder<Option<AuthData>, C> where
C: Pop<XSpanIdString>,
[src]
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]
impl<C> Pop<XSpanIdString> for ContextBuilder<Option<Authorization>, C> where
C: Pop<XSpanIdString>,
[src]
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]
impl Push<XSpanIdString> for EmptyContext
[src]
type Result = ContextBuilder<XSpanIdString, Self>
The type that results from adding an item.
fn push(self, item: XSpanIdString) -> Self::Result
[src]
impl<C, T> Push<XSpanIdString> for ContextBuilder<T, C>
[src]
type Result = ContextBuilder<XSpanIdString, Self>
The type that results from adding an item.
fn push(self, item: XSpanIdString) -> Self::Result
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,