Struct jwt::claims::Claims[][src]

pub struct Claims {
    pub registered: RegisteredClaims,
    pub private: BTreeMap<String, Value>,

Generic JWT claims with defined fields for registered and private claims.


registered: RegisteredClaimsprivate: BTreeMap<String, Value>


impl Claims[src]

pub fn new(registered: RegisteredClaims) -> Self[src]

Trait Implementations

impl Debug for Claims[src]

impl Default for Claims[src]

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

impl PartialEq<Claims> for Claims[src]

impl Serialize for Claims[src]

impl StructuralPartialEq for Claims[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> FromBase64 for T where
    T: for<'de> Deserialize<'de>, 

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<C> SignWithKey<String> for C where
    C: ToBase64

impl<T> ToBase64 for T where
    T: Serialize

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.