pub struct Settings {
pub forced_settings: HashMap<String, SettingsValue>,
pub command_line_options: HashMap<String, Vec<SettingsValue>>,
pub rw_settings: HashMap<String, SettingsValue>,
pub ro_config: HashMap<String, HashMap<String, Vec<SettingsValue>>>,
}
Expand description
| Stored settings. This struct combines settings | from the command line, a read-only | configuration file, and a read-write runtime | settings file.
Fields§
§forced_settings: HashMap<String, SettingsValue>
| Map of setting name to forced setting | value. |
command_line_options: HashMap<String, Vec<SettingsValue>>
| Map of setting name to list of command | line values. |
rw_settings: HashMap<String, SettingsValue>
| Map of setting name to read-write file | setting value. |
ro_config: HashMap<String, HashMap<String, Vec<SettingsValue>>>
| Map of config section name and setting | name to list of config file values. |
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more