[][src]Struct mio_license::Claims

pub struct Claims {
    pub base_url: String,
    pub company: String,
    pub exp: u64,
    pub nbf: u64,
    pub aud: String,
    pub iss: String,
    pub features: Vec<String>,
    pub domain_name: Option<String>,
}

Fields

base_url: Stringcompany: Stringexp: u64nbf: u64aud: Stringiss: Stringfeatures: Vec<String>domain_name: Option<String>

Implementations

impl Claims[src]

pub fn check_product(&self, product: &str) -> Result<(), String>[src]

pub fn check_domain_name(&self) -> Result<(), String>[src]

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

Trait Implementations

impl Debug for Claims[src]

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

impl FromStr for Claims[src]

type Err = String

The associated error which can be returned from parsing.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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