pub struct Holiday {
pub name: String,
pub date: NaiveDate,
pub activity_multiplier: f64,
pub is_bank_holiday: bool,
}Expand description
A holiday with its associated activity multiplier.
Fields§
§name: StringHoliday name.
date: NaiveDateDate of the holiday.
activity_multiplier: f64Activity multiplier (0.0 = completely closed, 1.0 = normal).
is_bank_holiday: boolWhether this is a bank holiday (affects financial transactions).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Holiday
impl RefUnwindSafe for Holiday
impl Send for Holiday
impl Sync for Holiday
impl Unpin for Holiday
impl UnwindSafe for Holiday
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