[][src]Enum picky::jose::jwt::JwtError

#[non_exhaustive]pub enum JwtError {
    Jws {
        source: JwsError,
    },
    Jwe {
        source: JweError,
    },
    Json {
        source: Error,
    },
    InvalidRegisteredClaimType {
        claim: &'static str,
    },
    RequiredClaimMissing {
        claim: &'static str,
    },
    NotYetValid {
        not_before: i64,
        now: JwtDate,
    },
    Expired {
        not_after: i64,
        now: JwtDate,
    },
    InvalidValidator {
        description: &'static str,
    },
}

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Jws

JWS error

Fields of Jws

source: JwsError
Jwe

JWE error

Fields of Jwe

source: JweError
Json

Json error

Fields of Json

source: Error
InvalidRegisteredClaimType

registered claim type is invalid

Fields of InvalidRegisteredClaimType

claim: &'static str
RequiredClaimMissing

a required claim is missing

Fields of RequiredClaimMissing

claim: &'static str
NotYetValid

token not yet valid

Fields of NotYetValid

not_before: i64now: JwtDate
Expired

token expired

Fields of Expired

not_after: i64now: JwtDate
InvalidValidator

validator is invalid

Fields of InvalidValidator

description: &'static str

Trait Implementations

impl Debug for JwtError[src]

impl Display for JwtError[src]

impl Error for JwtError[src]

impl From<Error> for JwtError[src]

impl From<JweError> for JwtError[src]

impl From<JwsError> for JwtError[src]

Auto Trait Implementations

impl !RefUnwindSafe for JwtError

impl Send for JwtError

impl Sync for JwtError

impl Unpin for JwtError

impl !UnwindSafe for JwtError

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> 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> ToString for T where
    T: Display + ?Sized
[src]

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