pub enum CredentialError {
MissingIssuer,
MissingSubject,
InvalidDid(String),
Expired,
InvalidProof,
UnsupportedProofType(String),
}Expand description
Errors that can occur during credential operations.
Variants§
MissingIssuer
The credential is missing an issuer
MissingSubject
The credential is missing a subject
InvalidDid(String)
The DID string is malformed
Expired
The credential has expired
InvalidProof
The proof is invalid or cannot be verified
UnsupportedProofType(String)
The proof type is not supported
Trait Implementations§
Source§impl Clone for CredentialError
impl Clone for CredentialError
Source§fn clone(&self) -> CredentialError
fn clone(&self) -> CredentialError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CredentialError
impl Debug for CredentialError
Source§impl Display for CredentialError
impl Display for CredentialError
Source§impl Error for CredentialError
impl Error for CredentialError
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 CredentialError
impl PartialEq for CredentialError
impl Eq for CredentialError
impl StructuralPartialEq for CredentialError
Auto Trait Implementations§
impl Freeze for CredentialError
impl RefUnwindSafe for CredentialError
impl Send for CredentialError
impl Sync for CredentialError
impl Unpin for CredentialError
impl UnwindSafe for CredentialError
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
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
Compare self to
key and return true if they are equal.