pub struct CalendarSchedule {
pub effective_start: NaiveDate,
pub weekmask: [bool; 7],
pub rules: Vec<HolidayRule>,
pub trading_hours: Option<TradingHours>,
}Expand description
Date-effective schedule data for a calendar family.
Fields§
§effective_start: NaiveDate§weekmask: [bool; 7]§rules: Vec<HolidayRule>§trading_hours: Option<TradingHours>Implementations§
Source§impl CalendarSchedule
impl CalendarSchedule
pub fn new( effective_start: NaiveDate, weekmask: [bool; 7], rules: Vec<HolidayRule>, trading_hours: Option<TradingHours>, ) -> Self
Trait Implementations§
Source§impl Clone for CalendarSchedule
impl Clone for CalendarSchedule
Source§fn clone(&self) -> CalendarSchedule
fn clone(&self) -> CalendarSchedule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CalendarSchedule
impl RefUnwindSafe for CalendarSchedule
impl Send for CalendarSchedule
impl Sync for CalendarSchedule
impl Unpin for CalendarSchedule
impl UnsafeUnpin for CalendarSchedule
impl UnwindSafe for CalendarSchedule
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