pub struct SeverityConfig {
pub base_type_weight: f64,
pub monetary_weight: f64,
pub frequency_weight: f64,
pub scope_weight: f64,
pub timing_weight: f64,
pub materiality_threshold: Decimal,
pub high_frequency_threshold: usize,
pub broad_scope_threshold: usize,
}Expand description
Configuration for severity calculation.
Fields§
§base_type_weight: f64Weight for base type severity component.
monetary_weight: f64Weight for monetary impact component.
frequency_weight: f64Weight for frequency factor component.
scope_weight: f64Weight for scope factor component.
timing_weight: f64Weight for timing factor component.
materiality_threshold: DecimalMateriality threshold for monetary impact normalization.
high_frequency_threshold: usizeNumber of anomalies considered “high frequency”.
broad_scope_threshold: usizeNumber of entities considered “broad scope”.
Implementations§
Trait Implementations§
Source§impl Clone for SeverityConfig
impl Clone for SeverityConfig
Source§fn clone(&self) -> SeverityConfig
fn clone(&self) -> SeverityConfig
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 SeverityConfig
impl Debug for SeverityConfig
Auto Trait Implementations§
impl Freeze for SeverityConfig
impl RefUnwindSafe for SeverityConfig
impl Send for SeverityConfig
impl Sync for SeverityConfig
impl Unpin for SeverityConfig
impl UnwindSafe for SeverityConfig
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