pub enum ClaimsError {
TooLarge,
Truncated,
WrongDomain,
TrailingBytes,
InvalidShape,
AnonymousSubject,
NonCanonicalRoles,
NonCanonicalScopes,
InvalidGrantCount {
found: usize,
},
InvalidScopeCount {
found: usize,
},
TooManyScopeEntries {
found: usize,
max: usize,
},
}Expand description
Structural rejection, distinct from signature, time and enrollment failures.
Variants§
TooLarge
The entire blob or remaining grant payload exceeds its defensive byte cap.
Truncated
A required field is incomplete.
WrongDomain
Domain, schema or mechanism is unsupported; no legacy fallback is tried.
TrailingBytes
Data follows the complete record.
InvalidShape
A length, label, principal or device fence is structurally invalid.
AnonymousSubject
The claimed account subject is anonymous.
NonCanonicalRoles
Roles are duplicated or not strictly ascending.
NonCanonicalScopes
Scopes within a role are duplicated or not strictly ascending.
InvalidGrantCount
The in-memory grant list is empty or exceeds 16 roles.
InvalidScopeCount
An in-memory role has no scopes or exceeds 32 scopes.
TooManyScopeEntries
The total number of role–scope entries exceeds the fresh-credential cap.
Trait Implementations§
Source§impl Clone for ClaimsError
impl Clone for ClaimsError
impl 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 PartialEq for ClaimsError
impl PartialEq for ClaimsError
impl StructuralPartialEq for ClaimsError
Auto Trait Implementations§
impl Forget for ClaimsError
impl Freeze for ClaimsError
impl Move 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