[][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: Clone> Clone for ClaimsSet<T>[src]

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

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

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

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

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

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

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

impl<T> StructuralEq for ClaimsSet<T>[src]

impl<T> StructuralPartialEq for ClaimsSet<T>[src]

Auto Trait Implementations

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

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

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

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

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

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> CompactPart for T where
    T: CompactJson
[src]

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

JSON serialize the part and return the JSON string bytes

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

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

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

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

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.