summaryrefslogtreecommitdiff
path: root/src/works/stories.rs
diff options
context:
space:
mode:
authorWriterV2 <primary-v2@protonmail.com>2022-09-04 18:12:55 +0200
committerWriterV2 <primary-v2@protonmail.com>2022-09-04 18:12:55 +0200
commit0ace78a01e59545953ef5be6ca6bcaa4a125a70b (patch)
treecba0424f103958a90b655f1ce33270cd5f15487d /src/works/stories.rs
parent236e0d464f6472a36f7e1f5dc0b0f71b26b8ecc3 (diff)
Add error context + comments
Diffstat (limited to 'src/works/stories.rs')
-rw-r--r--src/works/stories.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/works/stories.rs b/src/works/stories.rs
index 73d89ad..e6f5427 100644
--- a/src/works/stories.rs
+++ b/src/works/stories.rs
@@ -1,5 +1,8 @@
use serde::{Deserialize, Serialize};
+// stories and their information
+// derive from JSON
+// process to context for HTML
#[derive(Debug, Deserialize, Serialize)]
pub struct Stories(pub Vec<Story>);
@@ -13,8 +16,10 @@ pub struct Story {
pub language: Language,
}
+// see src/works/mod.rs for information of Works trait
impl super::Works for Stories {}
+// language of story content
#[derive(Deserialize, Serialize, Debug)]
pub enum Language {
German,