Include more info in DONE
This commit is contained in:
parent
0bb01369b8
commit
bfbf53784b
5 changed files with 94 additions and 34 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue