macro_rules! general_defaults {
($($key:expr => $value:expr),* $(,)?) => { ... };
}Expand description
Generate a Config object with default values in a section entitled “DEFAULT”.
Variables are supported in key and value fields, but must be strings.
§Syntax
let logging = "logging"; // Variables are supported across all fields.
let use_logging = "true"; // Value must be a string!
let mut config: Config = general_defaults! {
"console" => "true",
logging => use_logging,
};