pub enum RepeatCycle {
Daily {
every_n_days: u32,
},
Weekly {
weekdays: BTreeSet<Weekday>,
},
Monthly {
every_n_months: u32,
},
}Expand description
A recurrence rule (spec §3): how often a Recurrence-carrying task’s due
date advances when it’s completed (see Recurrence::next_due). Covers the
common cases (daily interval, weekly weekday set, monthly same-day) — not a
full RRULE engine.
Variants§
Trait Implementations§
Source§impl Clone for RepeatCycle
impl Clone for RepeatCycle
Source§fn clone(&self) -> RepeatCycle
fn clone(&self) -> RepeatCycle
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 moreSource§impl Debug for RepeatCycle
impl Debug for RepeatCycle
Source§impl<'de> Deserialize<'de> for RepeatCycle
impl<'de> Deserialize<'de> for RepeatCycle
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 RepeatCycle
Source§impl PartialEq for RepeatCycle
impl PartialEq for RepeatCycle
Source§fn eq(&self, other: &RepeatCycle) -> bool
fn eq(&self, other: &RepeatCycle) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RepeatCycle
impl Serialize for RepeatCycle
impl StructuralPartialEq for RepeatCycle
Auto Trait Implementations§
impl Freeze for RepeatCycle
impl RefUnwindSafe for RepeatCycle
impl Send for RepeatCycle
impl Sync for RepeatCycle
impl Unpin for RepeatCycle
impl UnsafeUnpin for RepeatCycle
impl UnwindSafe for RepeatCycle
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