Struct ReconcileTracking
pub struct ReconcileTracking {
pub last_reconcile_seq: Option<u64>,
pub order_status: Option<ScopeReconcileStatus>,
pub position_status: Option<ScopeReconcileStatus>,
pub balance_status: Option<ScopeReconcileStatus>,
}Expand description
Per-scope reconciliation tracking embedded in PortfolioState.
Each scope is None until its first reconciliation event is reduced.
Detail lives in the journal (retrievable by last_seq), not in state.
Fields§
§last_reconcile_seq: Option<u64>§order_status: Option<ScopeReconcileStatus>§position_status: Option<ScopeReconcileStatus>§balance_status: Option<ScopeReconcileStatus>Implementations§
§impl ReconcileTracking
impl ReconcileTracking
pub fn max_divergence_severity(&self) -> Option<ReconcileSeverity>
pub fn max_divergence_severity(&self) -> Option<ReconcileSeverity>
Worst severity across all scopes with active divergence (Divergence or Error).
pub fn has_active_divergence(&self) -> bool
pub fn has_active_divergence(&self) -> bool
True if any initialized scope has result != Ok.
Trait Implementations§
§impl Clone for ReconcileTracking
impl Clone for ReconcileTracking
§fn clone(&self) -> ReconcileTracking
fn clone(&self) -> ReconcileTracking
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ReconcileTracking
impl Debug for ReconcileTracking
§impl Default for ReconcileTracking
impl Default for ReconcileTracking
§fn default() -> ReconcileTracking
fn default() -> ReconcileTracking
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for ReconcileTracking
impl<'de> Deserialize<'de> for ReconcileTracking
§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 PartialEq for ReconcileTracking
impl PartialEq for ReconcileTracking
§impl Serialize for ReconcileTracking
impl Serialize for ReconcileTracking
impl Eq for ReconcileTracking
impl StructuralPartialEq for ReconcileTracking
Auto Trait Implementations§
impl Freeze for ReconcileTracking
impl RefUnwindSafe for ReconcileTracking
impl Send for ReconcileTracking
impl Sync for ReconcileTracking
impl Unpin for ReconcileTracking
impl UnsafeUnpin for ReconcileTracking
impl UnwindSafe for ReconcileTracking
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)