pub struct TemporalFactors {
pub high_volume_period: bool,
pub staff_transition_period: bool,
pub cross_period: bool,
pub days_since_anomaly: u32,
}Expand description
Temporal factors affecting detection difficulty.
Fields§
§high_volume_period: boolAnomaly occurred during high-volume period.
staff_transition_period: boolAnomaly occurred during staff transition.
cross_period: boolAnomaly was spread across multiple periods.
days_since_anomaly: u32Time since anomaly (older = harder to investigate).
Implementations§
Source§impl TemporalFactors
impl TemporalFactors
Sourcepub fn with_high_volume(self) -> Self
pub fn with_high_volume(self) -> Self
Sets high volume period flag.
Sourcepub fn with_staff_transition(self) -> Self
pub fn with_staff_transition(self) -> Self
Sets staff transition period flag.
Sourcepub fn with_cross_period(self) -> Self
pub fn with_cross_period(self) -> Self
Sets cross period flag.
Sourcepub fn difficulty_contribution(&self) -> f64
pub fn difficulty_contribution(&self) -> f64
Calculates the total difficulty contribution from temporal factors.
Trait Implementations§
Source§impl Clone for TemporalFactors
impl Clone for TemporalFactors
Source§fn clone(&self) -> TemporalFactors
fn clone(&self) -> TemporalFactors
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 TemporalFactors
impl Debug for TemporalFactors
Source§impl Default for TemporalFactors
impl Default for TemporalFactors
Source§fn default() -> TemporalFactors
fn default() -> TemporalFactors
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TemporalFactors
impl<'de> Deserialize<'de> for TemporalFactors
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
Auto Trait Implementations§
impl Freeze for TemporalFactors
impl RefUnwindSafe for TemporalFactors
impl Send for TemporalFactors
impl Sync for TemporalFactors
impl Unpin for TemporalFactors
impl UnwindSafe for TemporalFactors
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