diff options
| author | WriterV2 <primary-v2@protonmail.com> | 2023-01-28 12:51:05 +0100 |
|---|---|---|
| committer | WriterV2 <primary-v2@protonmail.com> | 2023-01-28 12:51:05 +0100 |
| commit | d3e2c3f4446e35f6a6d930e996488e94760f469c (patch) | |
| tree | 620ed4995bbaab74a18a01aafa74ad1b3b73a113 /src/works/stories.rs | |
| parent | 46dbedbd451217cd22d10e9d8cd208d4706771b8 (diff) | |
Replace id attribute with last_update to sort stories
Diffstat (limited to 'src/works/stories.rs')
| -rw-r--r-- | src/works/stories.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/works/stories.rs b/src/works/stories.rs index bca5909..4620553 100644 --- a/src/works/stories.rs +++ b/src/works/stories.rs @@ -1,3 +1,4 @@ +use chrono::NaiveDate; use serde::{Deserialize, Serialize}; // stories and their information @@ -8,12 +9,12 @@ pub struct Stories(pub Vec<Story>); #[derive(Debug, Deserialize, Serialize)] pub struct Story { - pub id: u8, pub title: String, pub description: String, pub path_to_document: String, pub number_of_pages: u16, pub language: Language, + pub last_update: NaiveDate, } // see src/works/mod.rs for information of Works trait |
