1 2 3 4 5 6 7 8 9 10 11 12 13 14
#[derive(Debug, Clone)] pub struct Config { pub name: String, pub debug: bool, } impl Default for Config { fn default() -> Self { Self { name: "Rust Application".to_owned(), debug: true, } } }