pub struct JournalRef {
pub events: u64,
pub sha256: String,
}Expand description
A reference to the journal head at a checkpoint boundary, stamped into the checkpoint so evidence and state travel together.
The hash is the journal’s running head hash (chained SHA-256 over recorded events), so a checkpoint pins not just how many events existed but which events — tamper-evident linkage between state and evidence.
Fields§
§events: u64Number of events in the journal at the boundary.
sha256: StringJournal head hash (chained SHA-256) at the boundary.
Trait Implementations§
Source§impl Clone for JournalRef
impl Clone for JournalRef
Source§impl Debug for JournalRef
impl Debug for JournalRef
Source§impl<'de> Deserialize<'de> for JournalRef
impl<'de> Deserialize<'de> for JournalRef
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
impl Eq for JournalRef
Source§impl PartialEq for JournalRef
impl PartialEq for JournalRef
Source§impl Serialize for JournalRef
impl Serialize for JournalRef
impl StructuralPartialEq for JournalRef
Auto Trait Implementations§
impl Freeze for JournalRef
impl RefUnwindSafe for JournalRef
impl Send for JournalRef
impl Sync for JournalRef
impl Unpin for JournalRef
impl UnsafeUnpin for JournalRef
impl UnwindSafe for JournalRef
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