#[non_exhaustive]pub enum JwtPolicyError {
InvalidPolicyReference,
InvalidPolicyRevision,
InvalidExpectedValue,
TooManyRequiredClaims,
InvalidRequiredClaim,
DuplicateRequiredClaim,
ClockSkewTooLarge,
}Expand description
Redaction-safe local policy construction failure.
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.
InvalidPolicyReference
The safe non-secret operator policy slug was absent or malformed.
InvalidPolicyRevision
The safe non-secret operator revision slug was absent or malformed.
InvalidExpectedValue
An expected type, issuer, or audience was empty, too long, or contained controls.
TooManyRequiredClaims
More required claims were supplied than the fixed V1 ceiling.
InvalidRequiredClaim
A required claim name violated the bounded ASCII-name contract.
DuplicateRequiredClaim
A required claim name was repeated.
ClockSkewTooLarge
The permitted time skew exceeded the V1 ceiling.
Trait Implementations§
Source§impl Clone for JwtPolicyError
impl Clone for JwtPolicyError
Source§fn clone(&self) -> JwtPolicyError
fn clone(&self) -> JwtPolicyError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for JwtPolicyError
Source§impl Debug for JwtPolicyError
impl Debug for JwtPolicyError
Source§impl Display for JwtPolicyError
impl Display for JwtPolicyError
impl Eq for JwtPolicyError
Source§impl Error for JwtPolicyError
impl Error for JwtPolicyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for JwtPolicyError
impl PartialEq for JwtPolicyError
impl StructuralPartialEq for JwtPolicyError
Auto Trait Implementations§
impl Freeze for JwtPolicyError
impl RefUnwindSafe for JwtPolicyError
impl Send for JwtPolicyError
impl Sync for JwtPolicyError
impl Unpin for JwtPolicyError
impl UnsafeUnpin for JwtPolicyError
impl UnwindSafe for JwtPolicyError
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.§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
Checks if this value is equivalent to the given key. Read more