pub struct FileUnifiedLedger { /* private fields */ }Expand description
File-backed implementation used during the P5 dual-write migration. File-backed implementation of the unified savings ledger.
Implementations§
Source§impl FileUnifiedLedger
impl FileUnifiedLedger
Sourcepub fn reconcile_strict(&self) -> OclaResult<ReconciliationReport>
pub fn reconcile_strict(&self) -> OclaResult<ReconciliationReport>
Strict reconciliation for CI gates: returns an error on drift or double-booking.
Sourcepub fn reconciliation_coverage(&self) -> f64
pub fn reconciliation_coverage(&self) -> f64
Returns the percentage of legacy events that have a matching unified event.
Trait Implementations§
Source§impl UnifiedLedger for FileUnifiedLedger
impl UnifiedLedger for FileUnifiedLedger
fn record_unified(&self, event: UnifiedSavingsEventV2) -> OclaResult<String>
fn verify_chain(&self) -> OclaResult<bool>
fn query_by_attribution( &self, id: &str, ) -> OclaResult<Option<UnifiedSavingsEventV2>>
Auto Trait Implementations§
impl Freeze for FileUnifiedLedger
impl RefUnwindSafe for FileUnifiedLedger
impl Send for FileUnifiedLedger
impl Sync for FileUnifiedLedger
impl Unpin for FileUnifiedLedger
impl UnsafeUnpin for FileUnifiedLedger
impl UnwindSafe for FileUnifiedLedger
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more