pub enum VerificationOutcome {
Verified,
ChecksumMatch,
SignatureInvalid {
detail: String,
},
SignerMismatch {
detail: String,
},
TransparencyLogMissing {
detail: String,
},
AttestationAbsent {
detail: String,
},
DigestMismatch {
detail: String,
},
Failed {
detail: String,
},
}Expand description
Structured outcome of attestation verification.
Variants§
Verified
Cryptographic signature verified (Sigstore, PGP, cosign, etc.).
ChecksumMatch
Checksum/integrity hash matched but no cryptographic signature was verified. This confirms download integrity but NOT authenticity.
SignatureInvalid
SignerMismatch
TransparencyLogMissing
AttestationAbsent
DigestMismatch
Failed
Implementations§
Source§impl VerificationOutcome
impl VerificationOutcome
Sourcepub fn is_verified(&self) -> bool
pub fn is_verified(&self) -> bool
Returns true for both Verified (signature) and ChecksumMatch (integrity).
Sourcepub fn is_cryptographically_signed(&self) -> bool
pub fn is_cryptographically_signed(&self) -> bool
Returns true only for cryptographic signature verification.
pub fn failure_detail(&self) -> Option<&str>
pub fn failure_kind(&self) -> Option<&'static str>
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
Source§impl PartialEq for VerificationOutcome
impl PartialEq for VerificationOutcome
Source§impl Serialize for VerificationOutcome
impl Serialize for VerificationOutcome
impl Eq for VerificationOutcome
impl StructuralPartialEq for VerificationOutcome
Auto Trait Implementations§
impl Freeze for VerificationOutcome
impl RefUnwindSafe for VerificationOutcome
impl Send for VerificationOutcome
impl Sync for VerificationOutcome
impl Unpin for VerificationOutcome
impl UnsafeUnpin 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