summaryrefslogtreecommitdiff
path: root/src/works
diff options
context:
space:
mode:
authorWriterV2 <primary-v2@protonmail.com>2023-01-28 12:51:05 +0100
committerWriterV2 <primary-v2@protonmail.com>2023-01-28 12:51:05 +0100
commitd3e2c3f4446e35f6a6d930e996488e94760f469c (patch)
tree620ed4995bbaab74a18a01aafa74ad1b3b73a113 /src/works
parent46dbedbd451217cd22d10e9d8cd208d4706771b8 (diff)
Replace id attribute with last_update to sort stories
Diffstat (limited to 'src/works')
-rw-r--r--src/works/stories.rs3
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