1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
pub struct AppConfig { pub name: String, pub env: String, pub debug: bool, } impl AppConfig { pub fn load() -> Self { Self { name: "Pakem".to_string(), env: "development".to_string(), debug: true, } } }