pub struct ConfidenceContext {
pub amount: Option<Decimal>,
pub expected_amount: Option<Decimal>,
pub prior_anomaly_count: usize,
pub entity_risk_score: f64,
pub auto_detected: bool,
pub evidence_count: usize,
pub pattern_confidence: f64,
pub timing_score: f64,
}Expand description
Context for confidence calculation.
Fields§
§amount: Option<Decimal>Amount involved in the anomaly.
expected_amount: Option<Decimal>Normal/expected amount for comparison.
prior_anomaly_count: usizeNumber of similar anomalies previously detected.
entity_risk_score: f64Entity risk score (0.0 - 1.0).
auto_detected: boolWhether the anomaly was detected by automated rules.
evidence_count: usizeNumber of supporting evidence items.
pattern_confidence: f64Pattern match confidence (0.0 - 1.0).
timing_score: f64Time-based anomaly indicators.
Trait Implementations§
Source§impl Clone for ConfidenceContext
impl Clone for ConfidenceContext
Source§fn clone(&self) -> ConfidenceContext
fn clone(&self) -> ConfidenceContext
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 ConfidenceContext
impl Debug for ConfidenceContext
Source§impl Default for ConfidenceContext
impl Default for ConfidenceContext
Source§fn default() -> ConfidenceContext
fn default() -> ConfidenceContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfidenceContext
impl RefUnwindSafe for ConfidenceContext
impl Send for ConfidenceContext
impl Sync for ConfidenceContext
impl Unpin for ConfidenceContext
impl UnwindSafe for ConfidenceContext
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