Added item's creation_date
This commit is contained in:
parent
092765f769
commit
3bf1fed5b9
5 changed files with 84 additions and 22 deletions
|
@ -40,6 +40,13 @@ impl Item {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn creation_date(&self) -> Option<&DateTime<Utc>> {
|
||||
match self {
|
||||
Item::Event(e) => e.creation_date(),
|
||||
Item::Task(t) => t.creation_date(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn last_modified(&self) -> &DateTime<Utc> {
|
||||
match self {
|
||||
Item::Event(e) => e.last_modified(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue