pub enum Frequency {
Daily,
EveryNDays(DayInterval),
Weekly(Weekday),
Monthly(DayOfMonth),
SemiAnnually,
Annually,
Biennially,
}Expand description
A recurrence frequency for calendar dates.
Variants§
Daily
Every calendar day.
EveryNDays(DayInterval)
Every N days, anchored to the schedule’s start date.
Weekly(Weekday)
Every week on the given day.
Monthly(DayOfMonth)
Every month on the given day of the month.
Months that do not contain that day are clamped to the last valid day of the month. For example, the 31st becomes February 28th or 29th.
SemiAnnually
Every six months, anchored to the schedule’s start date.
Annually
Every twelve months, anchored to the schedule’s start date.
Biennially
Every twenty-four months, anchored to the schedule’s start date.
Trait Implementations§
impl Copy for Frequency
Source§impl<'de> Deserialize<'de> for Frequency
impl<'de> Deserialize<'de> for Frequency
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 Frequency
impl StructuralPartialEq for Frequency
Auto Trait Implementations§
impl Freeze for Frequency
impl RefUnwindSafe for Frequency
impl Send for Frequency
impl Sync for Frequency
impl Unpin for Frequency
impl UnsafeUnpin for Frequency
impl UnwindSafe for Frequency
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