pub enum CheckpointAudit {
NoCheckpoints,
Consistent {
checkpoint_at: DateTime<Utc>,
attested_entries: u64,
unattested_entries: u64,
},
Truncated {
attested: u64,
found: u64,
},
HeadMismatch {
head_event_id: Uuid,
found: bool,
},
}Expand description
How the audit log measured up against its newest signed checkpoint.
Variants§
NoCheckpoints
No checkpoints exist. Nothing is contradicted, but nothing is attested either — the log carries only unkeyed-chain assurance.
Consistent
The log is consistent with the newest checkpoint.
Fields
Truncated
Truncation. The log holds fewer chainable entries than the newest signed checkpoint attests to. This is the finding the whole mechanism exists for and cannot be produced without the signing key.
HeadMismatch
The envelope named by head_event_id is missing, or its entry_hash
no longer matches the signed head. The attested anchor point has
been removed or rewritten.
Trait Implementations§
Source§impl Clone for CheckpointAudit
impl Clone for CheckpointAudit
Source§fn clone(&self) -> CheckpointAudit
fn clone(&self) -> CheckpointAudit
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 CheckpointAudit
impl Debug for CheckpointAudit
impl Eq for CheckpointAudit
Source§impl PartialEq for CheckpointAudit
impl PartialEq for CheckpointAudit
impl StructuralPartialEq for CheckpointAudit
Auto Trait Implementations§
impl Freeze for CheckpointAudit
impl RefUnwindSafe for CheckpointAudit
impl Send for CheckpointAudit
impl Sync for CheckpointAudit
impl Unpin for CheckpointAudit
impl UnsafeUnpin for CheckpointAudit
impl UnwindSafe for CheckpointAudit
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.