pub struct PeriodEndConfig {
pub enabled: bool,
pub model: PeriodEndModel,
pub additional_multiplier: f64,
}Expand description
Configuration for a specific period end type (month, quarter, year).
Fields§
§enabled: boolWhether this period-end effect is enabled
model: PeriodEndModelThe model to use for this period end
additional_multiplier: f64Additional multiplier applied on top of the model
Implementations§
Trait Implementations§
Source§impl Clone for PeriodEndConfig
impl Clone for PeriodEndConfig
Source§fn clone(&self) -> PeriodEndConfig
fn clone(&self) -> PeriodEndConfig
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 PeriodEndConfig
impl Debug for PeriodEndConfig
Source§impl Default for PeriodEndConfig
impl Default for PeriodEndConfig
Source§impl<'de> Deserialize<'de> for PeriodEndConfig
impl<'de> Deserialize<'de> for PeriodEndConfig
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 PeriodEndConfig
impl RefUnwindSafe for PeriodEndConfig
impl Send for PeriodEndConfig
impl Sync for PeriodEndConfig
impl Unpin for PeriodEndConfig
impl UnwindSafe for PeriodEndConfig
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