pub struct Recurrence {
pub cycle: RepeatCycle,
pub time: Option<Time>,
}Expand description
Recurrence capability: a task carrying this resets in place on
completion instead of staying done — spec decision: no per-occurrence
task spawning, the same task’s Schedule advances and its Status goes
back to todo (see the Event::StatusSet(Status::Done) apply arm).
Fields§
§cycle: RepeatCycle§time: Option<Time>Time-of-day to carry onto the recomputed due date; falls back to the current due’s time if unset.
Implementations§
Source§impl Recurrence
impl Recurrence
Sourcepub fn parse(s: &str) -> Result<Self, String>
pub fn parse(s: &str) -> Result<Self, String>
A minimal todoist/org-mode-style recurrence expression, mapped onto
RepeatCycle’s daily-interval/weekly-weekday-set/monthly-interval
cases — not a full RRULE engine:
daily | every day | every N days
weekly | every week | every <weekday>[,<weekday>...]
monthly | every month | every N months
Shared by [...] title syntax, the CLI --recurrence flag, and any
other free-text recurrence input.
Trait Implementations§
Source§impl Clone for Recurrence
impl Clone for Recurrence
Source§fn clone(&self) -> Recurrence
fn clone(&self) -> Recurrence
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more