pub enum TokenClaimsError {
EmptyIssuer,
EmptySubject,
EmptyRepositoryOwner,
EmptyRepositoryName,
EmptyRevision,
ControlCharacter,
TooLong,
}Expand description
Token claim validation failure.
Variants§
EmptyIssuer
The issuer was empty.
EmptySubject
The subject was empty.
EmptyRepositoryOwner
The repository owner was empty.
EmptyRepositoryName
The repository name was empty.
EmptyRevision
The revision was empty.
ControlCharacter
A token component contained control characters.
TooLong
A token component exceeded the supported metadata bound.
Trait Implementations§
Source§impl Clone for TokenClaimsError
impl Clone for TokenClaimsError
Source§fn clone(&self) -> TokenClaimsError
fn clone(&self) -> TokenClaimsError
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 TokenClaimsError
Source§impl Debug for TokenClaimsError
impl Debug for TokenClaimsError
Source§impl Display for TokenClaimsError
impl Display for TokenClaimsError
impl Eq for TokenClaimsError
Source§impl Error for TokenClaimsError
impl Error for TokenClaimsError
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<TokenClaimsError> for TokenCodecError
impl From<TokenClaimsError> for TokenCodecError
Source§fn from(source: TokenClaimsError) -> Self
fn from(source: TokenClaimsError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TokenClaimsError
impl PartialEq for TokenClaimsError
Source§fn eq(&self, other: &TokenClaimsError) -> bool
fn eq(&self, other: &TokenClaimsError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TokenClaimsError
Auto Trait Implementations§
impl Freeze for TokenClaimsError
impl RefUnwindSafe for TokenClaimsError
impl Send for TokenClaimsError
impl Sync for TokenClaimsError
impl Unpin for TokenClaimsError
impl UnsafeUnpin for TokenClaimsError
impl UnwindSafe for TokenClaimsError
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