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

#[non_exhaustive]
pub enum JwtError {
    Rsa {
        context: String,
    },
    Json {
        source: Error,
    },
    Signature {
        source: SignatureError,
    },
    InvalidEncoding {
        input: String,
    },
    Base64Decoding {
        source: DecodeError,
    },
    InvalidUtf8 {
        source: FromUtf8Error,
        input: Vec<u8>,
    },
    UnexpectedType {
        typ: String,
    },
    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.
Rsa

RSA error

Fields of Rsa

context: String
Json

Json error

Fields of Json

source: Error
Signature

signature error

Fields of Signature

source: SignatureError
InvalidEncoding

invalid token encoding

Fields of InvalidEncoding

input: String
Base64Decoding

couldn't decode base64

Fields of Base64Decoding

source: DecodeError
InvalidUtf8

input isn't valid utf8

Fields of InvalidUtf8

source: FromUtf8Errorinput: Vec<u8>
UnexpectedType

expected JWT but got an unexpected type

Fields of UnexpectedType

typ: String
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 where
    Self: Debug + Display
[src]

impl ErrorCompat for JwtError[src]

impl From<DecodeError> for JwtError[src]

impl From<Error> for JwtError[src]

impl From<Error> for JwtError[src]

impl From<SignatureError> 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> AsErrorSource for T where
    T: 'static + Error
[src]

impl<T> AsFail for T where
    T: Fail, 

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

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

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

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