[][src]Struct biscuit::ClaimsSet

pub struct ClaimsSet<T> {
    pub registered: RegisteredClaims,
    pub private: T,
}

A collection of claims, both registered and your custom private claims.

Fields

registered: RegisteredClaims

Registered claims defined by the RFC

private: T

Application specific claims

Trait Implementations

impl<T> CompactJson for ClaimsSet<T> where
    T: Serialize + DeserializeOwned
[src]

impl<T: PartialEq> PartialEq<ClaimsSet<T>> for ClaimsSet<T>[src]

impl<T: Default> Default for ClaimsSet<T>[src]

impl<T: Clone> Clone for ClaimsSet<T>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Eq> Eq for ClaimsSet<T>[src]

impl<T: Debug> Debug for ClaimsSet<T>[src]

impl<T: Serialize> Serialize for ClaimsSet<T>[src]

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

Auto Trait Implementations

impl<T> Send for ClaimsSet<T> where
    T: Send

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

Blanket Implementations

impl<T> CompactPart for T where
    T: CompactJson
[src]

fn to_bytes(&Self) -> Result<Vec<u8>, Error>[src]

JSON serialize the part and return the JSON string bytes

fn from_base64<B: AsRef<[u8]>>(encoded: &B) -> Result<Self, Error> where
    Self: Sized
[src]

Base64 decode into Self

fn to_base64(&self) -> Result<Base64Url, Error>[src]

Serialize Self to some form and then base64URL Encode

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]

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

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]