Struct ffizer::CmdOpt

source ·
pub struct CmdOpt {
    pub verbose: usize,
    pub confirm: AskConfirmation,
    pub x_always_default_value: bool,
    pub offline: bool,
    pub src_uri: SourceUri,
    pub src_rev: String,
    pub src_folder: Option<PathBuf>,
    pub dst_folder: PathBuf,
}

Fields§

§verbose: usize

Verbose mode (-v, -vv (very verbose / level debug), -vvv) print on stderr

§confirm: AskConfirmation

ask confirmation ‘never’ or ‘always’

§x_always_default_value: bool

should not ask for valiables values, always use defautl value or empty (experimental)

§offline: bool

in offline, only local templates or cached templates are used

§src_uri: SourceUri

uri / path of the template

§src_rev: String

git revision of the template

§src_folder: Option<PathBuf>

path of the folder under the source uri to use for template

§dst_folder: PathBuf

destination folder (created if doesn’t exist)

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
Returns the “default value” for a type. Read more
Returns the corresponding clap::App.
Creates the struct from clap::ArgMatches. It cannot fail with a parameter generated by clap by construction. Read more
Gets the struct from the command line arguments. 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. 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
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.