Struct medallion::claims::Claims [] [src]

pub struct Claims<T: Serialize + Deserialize> {
    pub reg: Registered,
    pub private: T,
}

A default claim set, including the standard, or registered, claims and the ability to specify your own as private claims.

Fields

Methods

impl<T: Serialize + Deserialize> Claims<T>
[src]

Convenience factory method

Trait Implementations

impl<T: Debug + Serialize + Deserialize> Debug for Claims<T>
[src]

Formats the value using the given formatter.

impl<T: Default + Serialize + Deserialize> Default for Claims<T>
[src]

Returns the "default value" for a type. Read more

impl<T: PartialEq + Serialize + Deserialize> PartialEq for Claims<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Serialize + Deserialize> Component for Claims<T>
[src]

This implementation simply parses the base64 data twice, each time applying it to the registered and private claims.

Renders both the registered and private claims into a single consolidated JSON representation before encoding.