pub enum PortableEncodingError {
TooLarge,
TooManyScopeEntries {
found: usize,
max: usize,
},
Truncated,
WrongDomain,
TrailingBytes,
InvalidShape,
AnonymousSubject,
Grants(GrantValidationError),
Canonical(CanonicalAuthError),
}Expand description
Structural codec errors, never proof-verification outcomes.
Variants§
TooLarge
Claims or canonical grant-list bytes exceed the admitted bound.
TooManyScopeEntries
Total scope entries across all roles exceed the credential’s aggregate bound.
Fields
Truncated
Input ended before a complete canonical field was available.
WrongDomain
Domain, schema or mechanism discriminator is not supported.
TrailingBytes
Extra input follows the complete canonical claims record.
InvalidShape
An identity, label or count violates the claims structure.
AnonymousSubject
The account subject is anonymous.
Grants(GrantValidationError)
Grant shape or cardinality violates the portable contract.
Canonical(CanonicalAuthError)
Labels or ordered grants fail canonical admission.
Trait Implementations§
Source§impl Debug for PortableEncodingError
impl Debug for PortableEncodingError
Source§impl Display for PortableEncodingError
impl Display for PortableEncodingError
impl Eq for PortableEncodingError
Source§impl Error for PortableEncodingError
impl Error for PortableEncodingError
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<CanonicalAuthError> for PortableEncodingError
impl From<CanonicalAuthError> for PortableEncodingError
Source§fn from(source: CanonicalAuthError) -> Self
fn from(source: CanonicalAuthError) -> Self
Converts to this type from the input type.
Source§impl From<GrantValidationError> for PortableEncodingError
impl From<GrantValidationError> for PortableEncodingError
Source§fn from(source: GrantValidationError) -> Self
fn from(source: GrantValidationError) -> Self
Converts to this type from the input type.
Source§impl From<PortableEncodingError> for PortableClaimsError
impl From<PortableEncodingError> for PortableClaimsError
Source§fn from(source: PortableEncodingError) -> Self
fn from(source: PortableEncodingError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PortableEncodingError
impl PartialEq for PortableEncodingError
impl StructuralPartialEq for PortableEncodingError
Auto Trait Implementations§
impl Forget for PortableEncodingError
impl Freeze for PortableEncodingError
impl Move for PortableEncodingError
impl RefUnwindSafe for PortableEncodingError
impl Send for PortableEncodingError
impl Sync for PortableEncodingError
impl Unpin for PortableEncodingError
impl UnsafeUnpin for PortableEncodingError
impl UnwindSafe for PortableEncodingError
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