Struct gpg_tui::args::Args[][src]

pub struct Args {
    pub armor: bool,
    pub splash: bool,
    pub homedir: Option<String>,
    pub outdir: Option<String>,
    pub default_key: Option<String>,
    pub tick_rate: u64,
    pub color: Color,
    pub style: String,
}
Expand description

Argument parser powered by structopt.

Fields

armor: bool

Enables ASCII armored output.

splash: bool

Shows the splash screen on startup.

homedir: Option<String>

Sets the GnuPG home directory.

outdir: Option<String>

Sets the output directory.

default_key: Option<String>

Sets the default key to sign with.

tick_rate: u64

Sets the tick rate of the terminal.

color: Color

Sets the accent color of the terminal.

style: String

Sets the style of the terminal.

Implementations

Parses the command-line arguments.

See StructOpt::from_args.

Trait Implementations

Formats the value using the given formatter. Read more

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

Performs the conversion.

Returns clap::App corresponding to the struct.

Builds the struct from clap::ArgMatches. It’s guaranteed to succeed if matches originates from an App generated by StructOpt::clap called on the same type, otherwise it must panic. Read more

Builds the struct from the command line arguments (std::env::args_os). Calls clap::Error::exit on failure, printing the error message and aborting the program. Read more

Builds the struct from the command line arguments (std::env::args_os). Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program, so calling .exit is up to you. Read more

Gets the struct from any iterator such as a Vec of your making. Print the error message and quit the program in case of failure. Read more

Gets the struct from any iterator such as a Vec of your making. 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.

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.