pub struct CalendarException {
pub from: NaiveDate,
pub to: Option<NaiveDate>,
pub hours: Vec<WorkingPeriod>,
pub name: Option<String>,
}Expand description
Local dates, inclusive, whose working periods replace the weekly pattern.
Fields§
§from: NaiveDateFirst date.
to: Option<NaiveDate>Last date; the exception covers only from when absent.
hours: Vec<WorkingPeriod>Working periods on each covered date; empty means not worked.
name: Option<String>Optional label such as a holiday name.
Implementations§
Trait Implementations§
Source§impl Clone for CalendarException
impl Clone for CalendarException
Source§impl Debug for CalendarException
impl Debug for CalendarException
Source§impl<'de> Deserialize<'de> for CalendarException
impl<'de> Deserialize<'de> for CalendarException
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
impl Eq for CalendarException
Source§impl PartialEq for CalendarException
impl PartialEq for CalendarException
Source§impl Serialize for CalendarException
impl Serialize for CalendarException
impl StructuralPartialEq for CalendarException
Auto Trait Implementations§
impl Freeze for CalendarException
impl RefUnwindSafe for CalendarException
impl Send for CalendarException
impl Sync for CalendarException
impl Unpin for CalendarException
impl UnsafeUnpin for CalendarException
impl UnwindSafe for CalendarException
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