Struct pueue_lib::settings::Settings [−][src]
Expand description
The parent settings struct.
This contains all other setting structs.
Fields
client: Client
daemon: Daemon
Implementations
Read from existing config files. If no config files can be found or fields are missing, an error is returned.
Try to read existing config files and
This function creates a new configuration instance and
populates it with default values for every option.
If a local config file already exists, it is parsed and
overrules the default option values.
The default local config is located at “~/.config/pueue.yml”.
If require_config
is true
, an error will be thrown, if no configuration file can be found.
This is utilized by the client, since only the daemon is allowed to touch the configuration
file.
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
pub fn vzip(self) -> V