summaryrefslogtreecommitdiff
path: root/src/works/stories.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/works/stories.rs')
-rw-r--r--src/works/stories.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/works/stories.rs b/src/works/stories.rs
new file mode 100644
index 0000000..b437fb4
--- /dev/null
+++ b/src/works/stories.rs
@@ -0,0 +1,21 @@
+use serde::Deserialize;
+
+#[derive(Debug, Deserialize)]
+pub struct Stories(pub Vec<Story>);
+
+#[derive(Debug, Deserialize)]
+pub struct Story {
+ pub title: String,
+ pub description: String,
+ pub path_to_document: String,
+ pub slug: String,
+ pub language: Language,
+}
+
+impl super::Works for Stories {}
+
+#[derive(Deserialize, Debug)]
+pub enum Language {
+ German,
+ English,
+}