Prepare for reminding

This commit is contained in:
Rahix 2026-03-02 08:46:52 +01:00
parent c1c0ced266
commit aebbcd7815
5 changed files with 124 additions and 5 deletions

View file

@ -24,6 +24,15 @@ pub enum State {
Completed { date: jiff::Zoned },
}
impl State {
pub fn due_date_if_open(&self) -> Option<&jiff::Zoned> {
match self {
State::Open { due } => due.as_ref(),
_ => None,
}
}
}
#[derive(Debug, Clone)]
pub struct Recurring {
pub interval: RecurringInterval,