pub struct SeasonalityConfig {Show 15 fields
pub month_end_spike: bool,
pub month_end_multiplier: f64,
pub month_end_lead_days: u32,
pub quarter_end_spike: bool,
pub quarter_end_multiplier: f64,
pub year_end_spike: bool,
pub year_end_multiplier: f64,
pub weekend_activity: f64,
pub holiday_activity: f64,
pub day_of_week_patterns: bool,
pub monday_multiplier: f64,
pub tuesday_multiplier: f64,
pub wednesday_multiplier: f64,
pub thursday_multiplier: f64,
pub friday_multiplier: f64,
}Expand description
Configuration for seasonality patterns.
Fields§
§month_end_spike: boolEnable month-end volume spikes
month_end_multiplier: f64Month-end spike multiplier (e.g., 2.5 = 2.5x normal volume)
month_end_lead_days: u32Days before month-end to start spike
quarter_end_spike: boolEnable quarter-end spikes
quarter_end_multiplier: f64Quarter-end spike multiplier
year_end_spike: boolEnable year-end spikes
year_end_multiplier: f64Year-end spike multiplier
weekend_activity: f64Activity level on weekends (0.0 = no activity, 1.0 = normal)
holiday_activity: f64Activity level on holidays
day_of_week_patterns: boolEnable day-of-week patterns (Monday catch-up, Friday slowdown)
monday_multiplier: f64Monday activity multiplier (catch-up from weekend)
tuesday_multiplier: f64Tuesday activity multiplier
wednesday_multiplier: f64Wednesday activity multiplier
thursday_multiplier: f64Thursday activity multiplier
friday_multiplier: f64Friday activity multiplier (early departures)
Trait Implementations§
Source§impl Clone for SeasonalityConfig
impl Clone for SeasonalityConfig
Source§fn clone(&self) -> SeasonalityConfig
fn clone(&self) -> SeasonalityConfig
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 SeasonalityConfig
impl Debug for SeasonalityConfig
Source§impl Default for SeasonalityConfig
impl Default for SeasonalityConfig
Source§impl<'de> Deserialize<'de> for SeasonalityConfig
impl<'de> Deserialize<'de> for SeasonalityConfig
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 SeasonalityConfig
impl RefUnwindSafe for SeasonalityConfig
impl Send for SeasonalityConfig
impl Sync for SeasonalityConfig
impl Unpin for SeasonalityConfig
impl UnwindSafe for SeasonalityConfig
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