pub enum ClaimsError {
IssuedInFuture,
Expired,
TtlTooLong {
seconds: i64,
},
NonPositiveTtl,
AudienceRejected,
MissingClaim {
label: i64,
},
ForbiddenClaim {
label: i64,
},
}Expand description
Claim-set validation failures (temporal, audience, and role shape).
Variants§
IssuedInFuture
iat is further in the future than the allowed clock skew.
Expired
The message is past its effective expiry (with skew allowance).
TtlTooLong
The explicit exp span exceeds the configured maximum TTL.
NonPositiveTtl
The explicit exp is not after iat.
AudienceRejected
A present aud is not in the allowed audience set.
MissingClaim
A claim the role requires is absent (basil private label).
ForbiddenClaim
A claim the role forbids is present (basil private label).
Trait Implementations§
Source§impl Clone for ClaimsError
impl Clone for ClaimsError
Source§fn clone(&self) -> ClaimsError
fn clone(&self) -> ClaimsError
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 ClaimsError
Source§impl Debug for ClaimsError
impl Debug for ClaimsError
Source§impl Display for ClaimsError
impl Display for ClaimsError
impl Eq for ClaimsError
Source§impl Error for ClaimsError
impl Error for ClaimsError
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 From<ClaimsError> for VerifyError
impl From<ClaimsError> for VerifyError
Source§fn from(e: ClaimsError) -> Self
fn from(e: ClaimsError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ClaimsError
impl PartialEq for ClaimsError
Source§fn eq(&self, other: &ClaimsError) -> bool
fn eq(&self, other: &ClaimsError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClaimsError
Auto Trait Implementations§
impl Freeze for ClaimsError
impl RefUnwindSafe for ClaimsError
impl Send for ClaimsError
impl Sync for ClaimsError
impl Unpin for ClaimsError
impl UnsafeUnpin for ClaimsError
impl UnwindSafe for ClaimsError
Blanket Implementations§
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