Parse and format logs

This commit is contained in:
Joscha 2021-12-31 17:54:26 +01:00
parent 0e4ef7fef3
commit 017098da34
4 changed files with 47 additions and 3 deletions

View file

@ -337,6 +337,12 @@ pub struct Note {
pub desc: Vec<String>,
}
#[derive(Debug)]
pub struct Log {
pub date: NaiveDate,
pub desc: Vec<String>,
}
#[derive(Debug)]
pub enum Command {
Task(Task),
@ -371,5 +377,6 @@ pub struct File {
pub contents: String,
pub includes: Vec<String>,
pub timezone: Option<String>,
pub logs: Vec<Log>,
pub commands: Vec<Command>,
}