refactor(wip): add Metadata struct

This commit is contained in:
Compositr 2025-01-18 10:02:11 +11:00
parent 6a3f3cee9d
commit c97472914f

View file

@ -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