Prepare for reminding
This commit is contained in:
parent
c1c0ced266
commit
aebbcd7815
5 changed files with 124 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue