Expand description
Struct to contain the JSON Web Token on a per-request basis.
Tuple Fields
0: TokenData<T>
Trait Implementations
sourceimpl<T: Debug + Send + 'static> Debug for AuthorizationToken<T>
impl<T: Debug + Send + 'static> Debug for AuthorizationToken<T>
impl<T: Send + 'static> StateData for AuthorizationToken<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for AuthorizationToken<T>where
T: RefUnwindSafe,
impl<T> Send for AuthorizationToken<T>
impl<T> Sync for AuthorizationToken<T>where
T: Sync,
impl<T> Unpin for AuthorizationToken<T>where
T: Unpin,
impl<T> UnwindSafe for AuthorizationToken<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> FromState for Twhere
T: StateData,
impl<T> FromState for Twhere
T: StateData,
sourcefn try_borrow_from(state: &State) -> Option<&T>
fn try_borrow_from(state: &State) -> Option<&T>
Tries to borrow a value from the
State
storage. Read moresourcefn borrow_from(state: &State) -> &T
fn borrow_from(state: &State) -> &T
Borrows a value from the
State
storage. Read moresourcefn try_borrow_mut_from(state: &mut State) -> Option<&mut T>
fn try_borrow_mut_from(state: &mut State) -> Option<&mut T>
Tries to mutably borrow a value from the
State
storage. Read moresourcefn borrow_mut_from(state: &mut State) -> &mut T
fn borrow_mut_from(state: &mut State) -> &mut T
Mutably borrows a value from the
State
storage. Read moresourcefn try_take_from(state: &mut State) -> Option<T>
fn try_take_from(state: &mut State) -> Option<T>
Tries to move a value out of the
State
storage and return ownership. Read more