[][src]Struct splinter::rest_api::sessions::Claims

pub struct Claims { /* fields omitted */ }

Defines payload of a JWT Token

Methods

impl Claims[src]

pub fn user_id(&self) -> String[src]

Returns the user id

pub fn iss(&self) -> String[src]

Returns the issuer of the token

pub fn exp(&self) -> u64[src]

Returns the expiration of the token

pub fn custom_claims(&self) -> HashMap<String, String>[src]

Returns custom claims

Trait Implementations

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

impl Serialize for Claims[src]

impl TokenIssuer<Claims> for AccessTokenIssuer[src]

Auto Trait Implementations

impl RefUnwindSafe for Claims

impl Send for Claims

impl Sync for Claims

impl Unpin for Claims

impl UnwindSafe for Claims

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: Deserialize<'de>, 
[src]

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

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

impl<T> IntoSql for T

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

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>,