Struct swagger::context::ContextBuilder
[−]
[src]
pub struct ContextBuilder<T, C> { /* fields omitted */ }
Wrapper type for building up contexts recursively, adding one item to the context at a time.
Trait Implementations
impl<T: Debug, C: Debug> Debug for ContextBuilder<T, C>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: Clone, C: Clone> Clone for ContextBuilder<T, C>
[src]
fn clone(&self) -> ContextBuilder<T, C>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Default, C: Default> Default for ContextBuilder<T, C>
[src]
fn default() -> ContextBuilder<T, C>
[src]
Returns the "default value" for a type. Read more
impl<T: PartialEq, C: PartialEq> PartialEq for ContextBuilder<T, C>
[src]
fn eq(&self, __arg_0: &ContextBuilder<T, C>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ContextBuilder<T, C>) -> bool
[src]
This method tests for !=
.
impl<T: Eq, C: Eq> Eq for ContextBuilder<T, C>
[src]
impl<T, C> Has<T> for ContextBuilder<T, C>
[src]
fn set(&mut self, item: T)
[src]
Set the value.
ⓘImportant traits for &'a mut Wfn get(&self) -> &T
[src]
Get an immutable reference to the value.
ⓘImportant traits for &'a mut Wfn get_mut(&mut self) -> &mut T
[src]
Get a mutable reference to the value.
impl<T, C> Pop<T> for ContextBuilder<T, C>
[src]
type Result = C
The type that remains after the value has been popped.
fn pop(self) -> (T, Self::Result)
[src]
Extracts a value.
impl<C, T, U> Push<U> for ContextBuilder<T, C>
[src]
type Result = ContextBuilder<U, Self>
The type that results from adding an item.
fn push(self, item: U) -> Self::Result
[src]
Inserts a value.
impl<C: Has<XSpanIdString>> Has<XSpanIdString> for ContextBuilder<Option<AuthData>, C>
[src]
fn set(&mut self, item: XSpanIdString)
[src]
Set the value.
fn get(&self) -> &XSpanIdString
[src]
Get an immutable reference to the value.
fn get_mut(&mut self) -> &mut XSpanIdString
[src]
Get a mutable reference to the value.
impl<C: Has<Option<AuthData>>> Has<Option<AuthData>> for ContextBuilder<XSpanIdString, C>
[src]
fn set(&mut self, item: Option<AuthData>)
[src]
Set the value.
fn get(&self) -> &Option<AuthData>
[src]
Get an immutable reference to the value.
fn get_mut(&mut self) -> &mut Option<AuthData>
[src]
Get a mutable reference to the value.
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]
Extracts a value.
impl<C> Pop<Option<AuthData>> for ContextBuilder<XSpanIdString, C> where
C: Pop<Option<AuthData>>,
[src]
C: Pop<Option<AuthData>>,
type Result = ContextBuilder<XSpanIdString, C::Result>
The type that remains after the value has been popped.
fn pop(self) -> (Option<AuthData>, Self::Result)
[src]
Extracts a value.
impl<C: Has<XSpanIdString>> Has<XSpanIdString> for ContextBuilder<Option<Authorization>, C>
[src]
fn set(&mut self, item: XSpanIdString)
[src]
Set the value.
fn get(&self) -> &XSpanIdString
[src]
Get an immutable reference to the value.
fn get_mut(&mut self) -> &mut XSpanIdString
[src]
Get a mutable reference to the value.
impl<C: Has<Option<Authorization>>> Has<Option<Authorization>> for ContextBuilder<XSpanIdString, C>
[src]
fn set(&mut self, item: Option<Authorization>)
[src]
Set the value.
fn get(&self) -> &Option<Authorization>
[src]
Get an immutable reference to the value.
fn get_mut(&mut self) -> &mut Option<Authorization>
[src]
Get a mutable reference to the value.
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]
Extracts a value.
impl<C> Pop<Option<Authorization>> for ContextBuilder<XSpanIdString, C> where
C: Pop<Option<Authorization>>,
[src]
C: Pop<Option<Authorization>>,
type Result = ContextBuilder<XSpanIdString, C::Result>
The type that remains after the value has been popped.
fn pop(self) -> (Option<Authorization>, Self::Result)
[src]
Extracts a value.
impl<C: Has<Option<AuthData>>> Has<Option<AuthData>> for ContextBuilder<Option<Authorization>, C>
[src]
fn set(&mut self, item: Option<AuthData>)
[src]
Set the value.
fn get(&self) -> &Option<AuthData>
[src]
Get an immutable reference to the value.
fn get_mut(&mut self) -> &mut Option<AuthData>
[src]
Get a mutable reference to the value.
impl<C: Has<Option<Authorization>>> Has<Option<Authorization>> for ContextBuilder<Option<AuthData>, C>
[src]
fn set(&mut self, item: Option<Authorization>)
[src]
Set the value.
fn get(&self) -> &Option<Authorization>
[src]
Get an immutable reference to the value.
fn get_mut(&mut self) -> &mut Option<Authorization>
[src]
Get a mutable reference to the value.
impl<C> Pop<Option<AuthData>> for ContextBuilder<Option<Authorization>, C> where
C: Pop<Option<AuthData>>,
[src]
C: Pop<Option<AuthData>>,
type Result = ContextBuilder<Option<Authorization>, C::Result>
The type that remains after the value has been popped.
fn pop(self) -> (Option<AuthData>, Self::Result)
[src]
Extracts a value.
impl<C> Pop<Option<Authorization>> for ContextBuilder<Option<AuthData>, C> where
C: Pop<Option<Authorization>>,
[src]
C: Pop<Option<Authorization>>,
Auto Trait Implementations
impl<T, C> Send for ContextBuilder<T, C> where
C: Send,
T: Send,
C: Send,
T: Send,
impl<T, C> Sync for ContextBuilder<T, C> where
C: Sync,
T: Sync,
C: Sync,
T: Sync,