pub enum RepeatRule {
Daily,
Weekly,
Monthly,
Yearly,
Weekdays,
Custom(u32),
}Expand description
Recurrence rule for repeating tasks.
Variants§
Implementations§
Source§impl RepeatRule
impl RepeatRule
Sourcepub fn next_due_date(&self, from: &str) -> Option<String>
pub fn next_due_date(&self, from: &str) -> Option<String>
Returns the next due date (YYYY-MM-DD) from a given date string, or None if base is invalid.
Trait Implementations§
Source§impl Clone for RepeatRule
impl Clone for RepeatRule
Source§fn clone(&self) -> RepeatRule
fn clone(&self) -> RepeatRule
Returns a duplicate of the value. Read more
1.0.0 · 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 RepeatRule
impl Debug for RepeatRule
Source§impl Display for RepeatRule
impl Display for RepeatRule
Source§impl FromStr for RepeatRule
impl FromStr for RepeatRule
Source§impl PartialEq for RepeatRule
impl PartialEq for RepeatRule
impl Eq for RepeatRule
impl StructuralPartialEq for RepeatRule
Auto Trait Implementations§
impl Freeze for RepeatRule
impl RefUnwindSafe for RepeatRule
impl Send for RepeatRule
impl Sync for RepeatRule
impl Unpin for RepeatRule
impl UnsafeUnpin for RepeatRule
impl UnwindSafe for RepeatRule
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