pub enum VerificationState {
Unverified,
SchemaValid,
IssuerTrusted,
Revoked,
Expired,
}Expand description
Locally-derived verification status of a credential.
This is a cache of cheap local checks, ordered from weakest to strongest confidence,
with Revoked/Expired as terminal negative states. It is explicitly NOT a statement about
cryptographic validity (see the module header).
Variants§
Unverified
No local evidence of validity (e.g. no claims, unknown issuer).
SchemaValid
Has at least one claim — the shape looks like a credential. Not a schema-conformance proof.
IssuerTrusted
The issuer DID is on the caller-supplied trust allow-list. Not a signature check.
Revoked
The holder / issuer marked this credential revoked. Terminal.
Expired
The credential’s expires_at_unix is in the past. Terminal.
Trait Implementations§
Source§impl Clone for VerificationState
impl Clone for VerificationState
impl Copy for VerificationState
Source§impl Debug for VerificationState
impl Debug for VerificationState
Source§impl Default for VerificationState
impl Default for VerificationState
Source§impl<'de> Deserialize<'de> for VerificationState
impl<'de> Deserialize<'de> for VerificationState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VerificationState
Source§impl PartialEq for VerificationState
impl PartialEq for VerificationState
Source§impl Serialize for VerificationState
impl Serialize for VerificationState
impl StructuralPartialEq for VerificationState
Auto Trait Implementations§
impl Freeze for VerificationState
impl RefUnwindSafe for VerificationState
impl Send for VerificationState
impl Sync for VerificationState
impl Unpin for VerificationState
impl UnsafeUnpin for VerificationState
impl UnwindSafe for VerificationState
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