pub struct LedgerEntry {
pub seq: u64,
pub gene_id: String,
pub node_id: String,
pub delta: i64,
pub latency_saved_ms: u64,
pub event_type: LedgerEventType,
pub recorded_at_ms: u64,
pub cumulative_balance: i64,
}Expand description
One durable record written for every EVU-affecting event. The journal represents the ground-truth ledger; balances are derived by replaying the sequence.
Fields§
§seq: u64Monotonically increasing sequence number (1-based).
gene_id: StringGene that was replayed, or empty for non-gene events.
node_id: StringNode whose balance is credited / debited.
delta: i64Signed EVU delta for this event.
latency_saved_ms: u64Milliseconds of inference cost that was avoided.
event_type: LedgerEventTypeHuman-readable event type tag.
recorded_at_ms: u64Unix-epoch milliseconds when the entry was recorded.
cumulative_balance: i64Running balance after applying this entry.
Trait Implementations§
Source§impl Clone for LedgerEntry
impl Clone for LedgerEntry
Source§fn clone(&self) -> LedgerEntry
fn clone(&self) -> LedgerEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 LedgerEntry
impl Debug for LedgerEntry
Source§impl<'de> Deserialize<'de> for LedgerEntry
impl<'de> Deserialize<'de> for LedgerEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LedgerEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LedgerEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LedgerEntry
impl PartialEq for LedgerEntry
Source§impl Serialize for LedgerEntry
impl Serialize for LedgerEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LedgerEntry
Auto Trait Implementations§
impl Freeze for LedgerEntry
impl RefUnwindSafe for LedgerEntry
impl Send for LedgerEntry
impl Sync for LedgerEntry
impl Unpin for LedgerEntry
impl UnsafeUnpin for LedgerEntry
impl UnwindSafe for LedgerEntry
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