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§

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Performs the conversion. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Convert type of a const pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.