pub struct GitOptions {
    pub change_dir: Option<String>,
    pub git_dir: Option<String>,
    pub work_tree: Option<String>,
}
Expand description

The clap::Args struct

Fields

change_dir: Option<String>

Run as if was started in

git_dir: Option<String>

Directory where the GIT_DIR is

work_tree: Option<String>

Directory where the GIT_WORK_TREE is

Trait Implementations

Report the ArgGroup::id for this set of arguments
Append to Command so it can instantiate Self. Read more
Append to Command so it can update self. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
Assign values from ArgMatches to self.

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 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.