use serde_derive::{Deserialize, Serialize}; #[derive(Deserialize, Serialize)] pub struct Config { pub main_file: String, pub templates: Template, } #[derive(Deserialize, Serialize)] pub struct Template { pub section: String, pub chapter: String, pub figure: String, }