pub struct Authorization<A>(pub A);
Tuple Fields§
§0: A
Implementations§
Source§impl<A> Authorization<A>
impl<A> Authorization<A>
Trait Implementations§
Source§impl<A: Clone> Clone for Authorization<A>
impl<A: Clone> Clone for Authorization<A>
Source§fn clone(&self) -> Authorization<A>
fn clone(&self) -> Authorization<A>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<A: Debug> Debug for Authorization<A>
impl<A: Debug> Debug for Authorization<A>
Source§impl From<Authorization<Basic>> for Basic
impl From<Authorization<Basic>> for Basic
Source§fn from(val: Authorization<Self>) -> Self
fn from(val: Authorization<Self>) -> Self
Converts to this type from the input type.
Source§impl From<Authorization<Bearer>> for Bearer
impl From<Authorization<Bearer>> for Bearer
Source§fn from(val: Authorization<Self>) -> Self
fn from(val: Authorization<Self>) -> Self
Converts to this type from the input type.
Source§impl<A> Inject for Authorization<A>
impl<A> Inject for Authorization<A>
Auto Trait Implementations§
impl<A> Freeze for Authorization<A>where
A: Freeze,
impl<A> RefUnwindSafe for Authorization<A>where
A: RefUnwindSafe,
impl<A> Send for Authorization<A>where
A: Send,
impl<A> Sync for Authorization<A>where
A: Sync,
impl<A> Unpin for Authorization<A>where
A: Unpin,
impl<A> UnwindSafe for Authorization<A>where
A: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more