pub struct RecoveredLedger { /* private fields */ }Expand description
RecoveredLedger
Proof object for an allocation ledger that has crossed physical recovery, logical payload-envelope routing, compatibility checks, and committed integrity validation.
This type is not serializable and has no public constructor. It is the
provenance boundary required before declarations can mint
crate::ValidatedAllocations.
Implementations§
Source§impl RecoveredLedger
impl RecoveredLedger
Sourcepub const fn ledger(&self) -> &AllocationLedger
pub const fn ledger(&self) -> &AllocationLedger
Borrow the recovered canonical allocation ledger.
The returned ledger is diagnostic/staging state. It is not itself an
authority token; callers must keep passing the RecoveredLedger proof
across validation boundaries.
Sourcepub const fn physical_generation(&self) -> u64
pub const fn physical_generation(&self) -> u64
Return the selected physical committed generation.
Sourcepub const fn current_generation(&self) -> u64
pub const fn current_generation(&self) -> u64
Return the recovered ledger’s current logical generation.
Sourcepub const fn ledger_schema_version(&self) -> u32
pub const fn ledger_schema_version(&self) -> u32
Return the schema version routed by the logical payload envelope.
Sourcepub const fn envelope_version(&self) -> u16
pub const fn envelope_version(&self) -> u16
Return the payload envelope version used during recovery.
Trait Implementations§
Source§impl Clone for RecoveredLedger
impl Clone for RecoveredLedger
Source§fn clone(&self) -> RecoveredLedger
fn clone(&self) -> RecoveredLedger
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RecoveredLedger
impl Debug for RecoveredLedger
Source§impl PartialEq for RecoveredLedger
impl PartialEq for RecoveredLedger
Source§fn eq(&self, other: &RecoveredLedger) -> bool
fn eq(&self, other: &RecoveredLedger) -> bool
self and other values to be equal, and is used by ==.