generated from Astrial.org/template
refactor(wip): add Metadata struct
This commit is contained in:
parent
6a3f3cee9d
commit
c97472914f
1 changed files with 13 additions and 0 deletions
13
src/mgmt.rs
13
src/mgmt.rs
|
@ -25,6 +25,19 @@ pub struct Inventory {
|
|||
pub avg_word_count: f64,
|
||||
}
|
||||
|
||||
/// Represents the front-matter metadata included within each entry. Does not necessarily have to be associated with any real diary entry.
|
||||
#[derive(Debug)]
|
||||
pub struct Metadata {
|
||||
timestamp: String,
|
||||
timezone: String,
|
||||
}
|
||||
|
||||
impl Metadata {
|
||||
pub fn read_from_entry(contents: String) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/// Represents a single diary entry (markdown file) and its associated stats/metadata
|
||||
///
|
||||
/// Does not include the actual contents of the entry, only stats
|
||||
|
|
Loading…
Reference in a new issue