[][src]Struct gotham_middleware_jwt::AuthorizationToken

pub struct AuthorizationToken<T> where
    T: Send + 'static, 
{ pub token: TokenData<T>, }

Struct to contain the JSON Web Token on a per-request basis.

Fields

Headers, Claims, and other data from the token.

Methods

impl<T> AuthorizationToken<T> where
    T: Send + 'static, 
[src]

Create a new instance of AuthorizationToken<T> from TokenData<T>.

Trait Implementations

impl<T> StateData for AuthorizationToken<T> where
    T: Send + 'static, 
[src]

Auto Trait Implementations

impl<T> Send for AuthorizationToken<T>

impl<T> Sync for AuthorizationToken<T> where
    T: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 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]

Tries to borrow a value from the State storage. Read more

Borrows a value from the State storage. Read more

Tries to mutably borrow a value from the State storage. Read more

Mutably borrows a value from the State storage. Read more

Tries to move a value out of the State storage and return ownership. Read more

Moves a value out of the State storage and returns ownership. Read more

impl<T> Erased for T