pub struct VerificationOutcome {
pub valid: bool,
pub format: CredentialFormat,
pub issuer: Uri,
pub subject: Option<Uri>,
pub claims: ClaimSet,
pub unlinkable: bool,
pub predicates_verified: Vec<(ClaimPath, PredicateType)>,
pub valid_until: Option<DateTime>,
pub revocation_status: RevocationStatus,
}Expand description
The outcome of credential verification.
Fields§
§valid: boolWhether the credential signature is valid.
format: CredentialFormatThe credential format that was verified.
issuer: UriIssuer DID extracted from the credential.
subject: Option<Uri>Subject DID, if present.
claims: ClaimSetThe disclosed claims.
unlinkable: boolWhether the presentation provides unlinkability (BBS+ derived proofs).
predicates_verified: Vec<(ClaimPath, PredicateType)>Predicates that were verified (only for ZK-capable formats).
valid_until: Option<DateTime>Credential expiration, if present.
revocation_status: RevocationStatusRevocation status of the credential.
Trait Implementations§
Source§impl Clone for VerificationOutcome
impl Clone for VerificationOutcome
Source§fn clone(&self) -> VerificationOutcome
fn clone(&self) -> VerificationOutcome
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 VerificationOutcome
impl Debug for VerificationOutcome
Source§impl<'de> Deserialize<'de> for VerificationOutcome
impl<'de> Deserialize<'de> for VerificationOutcome
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
Auto Trait Implementations§
impl Freeze for VerificationOutcome
impl RefUnwindSafe for VerificationOutcome
impl Send for VerificationOutcome
impl Sync for VerificationOutcome
impl Unpin for VerificationOutcome
impl UnwindSafe for VerificationOutcome
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