pub enum VerificationResult {
Valid {
audience: Audience,
role: CredentialRole,
holder_did: String,
},
Expired {
expired_at: DateTime<Utc>,
},
InvalidSignature(String),
Revoked,
MalformedCredential(String),
OutOfScope {
reason: String,
},
UntrustedIssuer {
issuer_did: String,
},
}Expand description
Result of verifying a DPP access credential.
Variants§
Valid
Credential is valid — the granted audience is returned.
Expired
Credential has expired.
InvalidSignature(String)
JWS signature is invalid or cannot be verified.
Revoked
Credential has been revoked.
MalformedCredential(String)
Credential is structurally invalid (missing fields, wrong type).
OutOfScope
The credential’s scope doesn’t cover the requested resource.
UntrustedIssuer
The credential’s issuer DID is not in the operator’s trust registry for the audience it claims to grant.
Implementations§
Trait Implementations§
Source§impl Clone for VerificationResult
impl Clone for VerificationResult
Source§fn clone(&self) -> VerificationResult
fn clone(&self) -> VerificationResult
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 moreSource§impl Debug for VerificationResult
impl Debug for VerificationResult
impl Eq for VerificationResult
Source§impl PartialEq for VerificationResult
impl PartialEq for VerificationResult
impl StructuralPartialEq for VerificationResult
Auto Trait Implementations§
impl Freeze for VerificationResult
impl RefUnwindSafe for VerificationResult
impl Send for VerificationResult
impl Sync for VerificationResult
impl Unpin for VerificationResult
impl UnsafeUnpin for VerificationResult
impl UnwindSafe for VerificationResult
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.