pub enum SourceAttestation {
Verified(Attestation),
LegacyUnattested {
imported_at: DateTime<Utc>,
original_recorded_at: DateTime<Utc>,
},
Missing,
}Expand description
Attestation state attached to an event source across the v1 -> v2 cutover.
Verified is the normal v2 path. LegacyUnattested records honest absence
of cryptographic source proof for v1-era rows or imports. Missing is a
partial-read state and must not satisfy authority-required paths.
Variants§
Verified(Attestation)
Normal v2 path: verified Ed25519 per ADR 0010/0014.
LegacyUnattested
v1-era row or import without cryptographic proof.
Fields
Missing
Missing source attestation on a partial read.
Implementations§
Source§impl SourceAttestation
impl SourceAttestation
Sourcepub const fn is_verified(&self) -> bool
pub const fn is_verified(&self) -> bool
Returns true only for cryptographically verified source proof.
Sourcepub const fn is_unattested(&self) -> bool
pub const fn is_unattested(&self) -> bool
Returns true for legacy or partial states that cannot satisfy authority-required paths.
Trait Implementations§
Source§impl Clone for SourceAttestation
impl Clone for SourceAttestation
Source§fn clone(&self) -> SourceAttestation
fn clone(&self) -> SourceAttestation
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 SourceAttestation
impl Debug for SourceAttestation
Source§impl<'de> Deserialize<'de> for SourceAttestation
impl<'de> Deserialize<'de> for SourceAttestation
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 SourceAttestation
impl PartialEq for SourceAttestation
Source§fn eq(&self, other: &SourceAttestation) -> bool
fn eq(&self, other: &SourceAttestation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SourceAttestation
impl Serialize for SourceAttestation
impl Eq for SourceAttestation
impl StructuralPartialEq for SourceAttestation
Auto Trait Implementations§
impl Freeze for SourceAttestation
impl RefUnwindSafe for SourceAttestation
impl Send for SourceAttestation
impl Sync for SourceAttestation
impl Unpin for SourceAttestation
impl UnsafeUnpin for SourceAttestation
impl UnwindSafe for SourceAttestation
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