Include more info in DONE

This commit is contained in:
Joscha 2021-11-24 03:03:24 +01:00
parent 0bb01369b8
commit bfbf53784b
5 changed files with 94 additions and 34 deletions

View file

@ -277,10 +277,31 @@ pub enum Spec {
Formula(FormulaSpec),
}
#[derive(Debug)]
pub enum DoneDate {
Date {
root: NaiveDate,
},
DateWithTime {
root: NaiveDate,
root_time: Time,
},
DateToDate {
root: NaiveDate,
other: NaiveDate,
},
DateToDateWithTime {
root: NaiveDate,
root_time: Time,
other: NaiveDate,
other_time: Time,
},
}
#[derive(Debug)]
pub struct Done {
pub refering_to: Option<NaiveDate>,
pub created_at: Option<(NaiveDate, Time)>,
pub date: Option<DoneDate>,
pub done_at: NaiveDate,
}
#[derive(Debug)]