pub enum ProvenanceVerification {
Verified {
entry: MemoryProvenanceEntry,
chain_digest: String,
},
Unverified {
reason: UnverifiedReason,
},
}Expand description
Result of looking up provenance for a (store, key) pair.
Verified carries the entry whose chain linkage and hash both
check out. Unverified is the fail-closed signal that either no
entry was ever written, the chain has been tampered, or the chain
cannot currently be read (store unavailable).
Variants§
Verified
A chain entry was found and its hash / link verified locally.
Fields
§
entry: MemoryProvenanceEntryUnverified
No chain entry for this (store, key) pair, OR the chain is
currently inaccessible / tampered. reason narrows the case so
receipt consumers can log it without swallowing failures.
Fields
§
reason: UnverifiedReasonTrait Implementations§
Source§impl Clone for ProvenanceVerification
impl Clone for ProvenanceVerification
Source§fn clone(&self) -> ProvenanceVerification
fn clone(&self) -> ProvenanceVerification
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 ProvenanceVerification
impl Debug for ProvenanceVerification
Source§impl PartialEq for ProvenanceVerification
impl PartialEq for ProvenanceVerification
Source§impl Serialize for ProvenanceVerification
impl Serialize for ProvenanceVerification
impl Eq for ProvenanceVerification
impl StructuralPartialEq for ProvenanceVerification
Auto Trait Implementations§
impl Freeze for ProvenanceVerification
impl RefUnwindSafe for ProvenanceVerification
impl Send for ProvenanceVerification
impl Sync for ProvenanceVerification
impl Unpin for ProvenanceVerification
impl UnsafeUnpin for ProvenanceVerification
impl UnwindSafe for ProvenanceVerification
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.