summary refs log tree commit diff stats
path: root/src/config_file.rs
blob: 2233b367f800b3b2b748f3c14e86d1d71c885daa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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,
}