pub struct Ledger {
pub total: usize,
pub last: Option<u64>,
pub by_script: Vec<ScriptCount>,
}Expand description
What the ledger says, aggregated. Everything a reader displays comes through here; nobody re-parses the file.
Fields§
§total: usizeEvents on record (a floor after compaction).
last: Option<u64>The newest event’s epoch, if any.
by_script: Vec<ScriptCount>Count descending, then script ascending — a stable order a golden render can pin.
Trait Implementations§
impl Eq for Ledger
impl StructuralPartialEq for Ledger
Auto Trait Implementations§
impl Freeze for Ledger
impl RefUnwindSafe for Ledger
impl Send for Ledger
impl Sync for Ledger
impl Unpin for Ledger
impl UnsafeUnpin for Ledger
impl UnwindSafe for Ledger
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