Struct pueue_lib::settings::Settings[][src]

pub struct Settings {
    pub client: Client,
    pub daemon: Daemon,
    pub shared: Shared,
}
Expand description

The parent settings struct.
This contains all other setting structs.

Fields

client: Clientdaemon: Daemonshared: Shared

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.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. 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.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. 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.