1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/// `AppConfig` stores the configuration for each `App`.
///
/// For now, it only stores the name of the app.
#[derive(Clone, Debug)]
pub struct AppConfig {
pub name: String,
}
impl AppConfig {
pub fn with_name(name: &str) -> AppConfig {
AppConfig {
name: name.to_string(),
}
}
}