pub struct Settings {
pub client: Client,
pub daemon: Daemon,
pub shared: Shared,
pub profiles: HashMap<String, NestedSettings>,
}Expand description
The parent settings struct.
This contains all other setting structs.
Fields
client: Clientdaemon: Daemonprofiles: HashMap<String, NestedSettings>Implementations
Try to read existing config files, while using default values for non-existing fields. If successful, this will return a full config as well as a boolean on whether we found an existing configuration file or not.
The default local config locations depends on the current target.
Save the current configuration as a file to the given path.
If no path is given, the default configuration path will be used.
The file is then written to the main configuration directory of the respective OS.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Settings
impl UnwindSafe for Settings
Blanket Implementations
Mutably borrows from an owned value. Read more