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§
Source§impl Args for GitOptions
impl Args for GitOptions
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl Debug for GitOptions
impl Debug for GitOptions
Source§impl Default for GitOptions
impl Default for GitOptions
Source§fn default() -> GitOptions
fn default() -> GitOptions
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for GitOptions
impl FromArgMatches for GitOptions
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Auto Trait Implementations§
impl Freeze for GitOptions
impl RefUnwindSafe for GitOptions
impl Send for GitOptions
impl Sync for GitOptions
impl Unpin for GitOptions
impl UnwindSafe for GitOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more