Struct actix_web_security::authentication::scheme::bearer::jwt::default_jwt::DefaultJwt[][src]

pub struct DefaultJwt {
    pub iss: Option<String>,
    pub sub: Option<String>,
    pub aud: Option<String>,
    pub exp: Option<usize>,
    pub nbf: Option<usize>,
    pub iat: Option<usize>,
    pub jti: Option<String>,
}

A default implementation that can be used for JWT based authentication with commonly used claims.

Fields

iss: Option<String>

The URL of the identity provider

sub: Option<String>

The principal identifier

aud: Option<String>

The recipients the claim is for

exp: Option<usize>

The expiration date of the token

nbf: Option<usize>

The time the token must not be used before

iat: Option<usize>

The time the token was issues

jti: Option<String>

Unique identifier of the token

Trait Implementations

impl Claims for DefaultJwt[src]

impl Clone for DefaultJwt[src]

impl Debug for DefaultJwt[src]

impl<'de> Deserialize<'de> for DefaultJwt[src]

impl Serialize for DefaultJwt[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,