pub enum JwtPolicyViolation {
Show 14 variants
MissingType,
TypeMismatch,
MissingIssuer,
InvalidIssuerType,
IssuerMismatch,
MissingAudience,
InvalidAudienceType,
AudienceMismatch,
MissingRequiredClaim {
ordinal: u8,
},
MissingExpiration,
InvalidExpiration,
Expired,
InvalidNotBefore,
NotYetValid,
}Expand description
Value-free local policy inconsistency.
Variants§
MissingType
A protected typ value required by policy was absent.
TypeMismatch
The protected typ value differed from policy.
MissingIssuer
A required issuer was absent.
InvalidIssuerType
The issuer claim was not a string.
IssuerMismatch
The issuer differed from policy.
MissingAudience
A required audience was absent.
InvalidAudienceType
Audience was neither a string nor an array of strings.
AudienceMismatch
No declared audience exactly matched policy.
MissingRequiredClaim
One required claim name was absent. The ordinal refers only to the caller’s policy order and does not expose the name or value.
MissingExpiration
Expiration was required but absent.
InvalidExpiration
exp was not an integral NumericDate representable as i64.
Expired
The token was expired at the caller-supplied time and skew.
InvalidNotBefore
nbf was not an integral NumericDate representable as i64.
NotYetValid
The token was not yet valid at the caller-supplied time and skew.
Trait Implementations§
Source§impl Clone for JwtPolicyViolation
impl Clone for JwtPolicyViolation
Source§fn clone(&self) -> JwtPolicyViolation
fn clone(&self) -> JwtPolicyViolation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for JwtPolicyViolation
Source§impl Debug for JwtPolicyViolation
impl Debug for JwtPolicyViolation
Source§impl<'de> Deserialize<'de> for JwtPolicyViolation
impl<'de> Deserialize<'de> for JwtPolicyViolation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for JwtPolicyViolation
Source§impl PartialEq for JwtPolicyViolation
impl PartialEq for JwtPolicyViolation
Source§impl Serialize for JwtPolicyViolation
impl Serialize for JwtPolicyViolation
impl StructuralPartialEq for JwtPolicyViolation
Auto Trait Implementations§
impl Freeze for JwtPolicyViolation
impl RefUnwindSafe for JwtPolicyViolation
impl Send for JwtPolicyViolation
impl Sync for JwtPolicyViolation
impl Unpin for JwtPolicyViolation
impl UnsafeUnpin for JwtPolicyViolation
impl UnwindSafe for JwtPolicyViolation
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.