[−][src]Struct gotham_middleware_jwt::AuthorizationToken
Struct to contain the JSON Web Token on a per-request basis.
Fields
token: TokenData<T>
Headers, Claims, and other data from the token.
Methods
impl<T> AuthorizationToken<T> where
T: Send + 'static,
[src]
impl<T> AuthorizationToken<T> where
T: Send + 'static,
pub fn new(token: TokenData<T>) -> Self
[src]
pub fn new(token: TokenData<T>) -> Self
Create a new instance of AuthorizationToken<T>
from TokenData<T>
.
Trait Implementations
impl<T> StateData for AuthorizationToken<T> where
T: Send + 'static,
[src]
impl<T> StateData for AuthorizationToken<T> where
T: Send + 'static,
Auto Trait Implementations
impl<T> Send for AuthorizationToken<T>
impl<T> Send for AuthorizationToken<T>
impl<T> Sync for AuthorizationToken<T> where
T: Sync,
impl<T> Sync for AuthorizationToken<T> where
T: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T> FromState for T where
T: StateData,
[src]
impl<T> FromState for T where
T: StateData,
fn try_borrow_from(state: &State) -> Option<&T>
[src]
fn try_borrow_from(state: &State) -> Option<&T>
Tries to borrow a value from the State
storage. Read more
fn borrow_from(state: &State) -> &T
[src]
fn borrow_from(state: &State) -> &T
Borrows a value from the State
storage. Read more
fn try_borrow_mut_from(state: &mut State) -> Option<&mut T>
[src]
fn try_borrow_mut_from(state: &mut State) -> Option<&mut T>
Tries to mutably borrow a value from the State
storage. Read more
fn borrow_mut_from(state: &mut State) -> &mut T
[src]
fn borrow_mut_from(state: &mut State) -> &mut T
Mutably borrows a value from the State
storage. Read more
fn try_take_from(state: &mut State) -> Option<T>
[src]
fn try_take_from(state: &mut State) -> Option<T>
Tries to move a value out of the State
storage and return ownership. Read more
fn take_from(state: &mut State) -> T
[src]
fn take_from(state: &mut State) -> T
Moves a value out of the State
storage and returns ownership. Read more
impl<T> Erased for T
impl<T> Erased for T