pub struct PeriodEndModelSchemaConfig {
pub inherit_from: Option<String>,
pub additional_multiplier: Option<f64>,
pub start_day: Option<i32>,
pub base_multiplier: Option<f64>,
pub peak_multiplier: Option<f64>,
pub decay_rate: Option<f64>,
pub sustained_high_days: Option<i32>,
}Expand description
Period-end model configuration.
Fields§
§inherit_from: Option<String>Inherit configuration from another period (e.g., “month_end”).
additional_multiplier: Option<f64>Additional multiplier on top of inherited/base model.
start_day: Option<i32>Days before period end to start acceleration (negative, e.g., -10).
base_multiplier: Option<f64>Base multiplier at start of acceleration.
peak_multiplier: Option<f64>Peak multiplier on last day.
decay_rate: Option<f64>Decay rate for exponential model (0.1-0.5 typical).
sustained_high_days: Option<i32>Sustained high days for crunch model.
Trait Implementations§
Source§impl Clone for PeriodEndModelSchemaConfig
impl Clone for PeriodEndModelSchemaConfig
Source§fn clone(&self) -> PeriodEndModelSchemaConfig
fn clone(&self) -> PeriodEndModelSchemaConfig
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 PeriodEndModelSchemaConfig
impl Debug for PeriodEndModelSchemaConfig
Source§impl Default for PeriodEndModelSchemaConfig
impl Default for PeriodEndModelSchemaConfig
Source§fn default() -> PeriodEndModelSchemaConfig
fn default() -> PeriodEndModelSchemaConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PeriodEndModelSchemaConfig
impl<'de> Deserialize<'de> for PeriodEndModelSchemaConfig
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 PeriodEndModelSchemaConfig
impl RefUnwindSafe for PeriodEndModelSchemaConfig
impl Send for PeriodEndModelSchemaConfig
impl Sync for PeriodEndModelSchemaConfig
impl Unpin for PeriodEndModelSchemaConfig
impl UnwindSafe for PeriodEndModelSchemaConfig
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