Enum jwt_compact::ValidationError [−][src]
#[non_exhaustive] pub enum ValidationError { AlgorithmMismatch { expected: String, actual: String, }, MalformedSignature(Error), InvalidSignature, MalformedClaims(Error), MalformedCborClaims(Error), NoClaim(Claim), Expired, NotMature, }
Expand description
Errors that can occur during token validation.
Variants (Non-exhaustive)
This enum is marked as 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.
Algorithm mentioned in the token header differs from invoked one.
Show fields
MalformedSignature(Error)
Token signature is malformed (e.g., has an incorrect length).
Token signature has failed verification.
MalformedClaims(Error)
Token claims cannot be deserialized from JSON.
MalformedCborClaims(Error)
Token claims cannot be deserialized from CBOR.
NoClaim(Claim)
Claim requested during validation is not present in the token.
Token has expired.
Token is not yet valid as per nbf
claim.
Trait Implementations
impl Debug for ValidationError
[src]
impl Debug for ValidationError
[src]impl Display for ValidationError
[src]
impl Display for ValidationError
[src]impl Error for ValidationError
[src]
impl Error for ValidationError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl !UnwindSafe for ValidationError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,