Struct gpg_tui::config::Config[][src]

pub struct Config {
    pub general: GeneralConfig,
    pub gpg: GpgConfig,
}
Expand description

Application configuration.

Fields

general: GeneralConfig

General configuration.

gpg: GpgConfig

GnuPG configuration.

Implementations

Checks the possible locations for the configuration file.

  • <config_dir>/gpg-tui.toml
  • <config_dir>/gpg-tui/gpg-tui.toml
  • <config_dir>/gpg-tui/config

Returns the path if the configuration file is found.

Parses the configuration file.

Update the command-line arguments based on configuration.

Trait Implementations

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The error type produced by a failed conversion.

Convert the given value into an approximately equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an approximately equivalent representation.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Approximate the subject with the default scheme.

Approximate the subject with a specific scheme.

Approximate the subject to a given type with the default scheme.

Approximate the subject to a given type with a specific scheme.

Convert the subject to a given type.

Attempt to convert the subject to a given type.

Attempt a value conversion of the subject to a given type.

Performs the conversion.

Performs the conversion.

Should always be Self

The error type produced by a failed conversion.

Convert the given value into the subject type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the subject into the destination type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the given value into an exactly equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an exactly equivalent representation.