pub struct AnomalySummary {
pub gaps_detected: u32,
pub overlaps_detected: u32,
pub timestamp_anomalies: u32,
}Expand description
Anomaly summary for quick inspection (counts only)
Tracks anomalies detected during processing for debugging purposes. Does NOT affect processing - purely for monitoring.
Fields§
§gaps_detected: u32Number of gaps detected (missing trade IDs or timestamp jumps)
overlaps_detected: u32Number of overlaps detected (duplicate or out-of-order data)
timestamp_anomalies: u32Number of timestamp anomalies (negative intervals, etc.)
Implementations§
Source§impl AnomalySummary
impl AnomalySummary
Sourcepub fn record_gap(&mut self)
pub fn record_gap(&mut self)
Increment gap counter
Sourcepub fn record_overlap(&mut self)
pub fn record_overlap(&mut self)
Increment overlap counter
Sourcepub fn record_timestamp_anomaly(&mut self)
pub fn record_timestamp_anomaly(&mut self)
Increment timestamp anomaly counter
Sourcepub fn has_anomalies(&self) -> bool
pub fn has_anomalies(&self) -> bool
Check if any anomalies were detected
Trait Implementations§
Source§impl Clone for AnomalySummary
impl Clone for AnomalySummary
Source§fn clone(&self) -> AnomalySummary
fn clone(&self) -> AnomalySummary
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 AnomalySummary
impl Debug for AnomalySummary
Source§impl Default for AnomalySummary
impl Default for AnomalySummary
Source§fn default() -> AnomalySummary
fn default() -> AnomalySummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnomalySummary
impl<'de> Deserialize<'de> for AnomalySummary
Source§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
Source§impl PartialEq for AnomalySummary
impl PartialEq for AnomalySummary
Source§impl Serialize for AnomalySummary
impl Serialize for AnomalySummary
impl StructuralPartialEq for AnomalySummary
Auto Trait Implementations§
impl Freeze for AnomalySummary
impl RefUnwindSafe for AnomalySummary
impl Send for AnomalySummary
impl Sync for AnomalySummary
impl Unpin for AnomalySummary
impl UnwindSafe for AnomalySummary
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