summary refs log tree commit diff stats
path: root/src/config_file.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config_file.rs')
-rw-r--r--src/config_file.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/config_file.rs b/src/config_file.rs
new file mode 100644
index 0000000..838a78d
--- /dev/null
+++ b/src/config_file.rs
@@ -0,0 +1,19 @@
+use serde_derive::{Deserialize, Serialize};
+
+#[derive(Deserialize, Serialize)]
+pub struct Config {
+    pub last_chapter: LastChapter,
+    pub templates: Template,
+}
+
+#[derive(Deserialize, Serialize)]
+pub struct LastChapter {
+    pub user_name: String,
+    pub number: u32,
+}
+
+#[derive(Deserialize, Serialize)]
+pub struct Template {
+    pub section: String,
+    pub chapter: String
+}