pub struct UpdateCommand {
pub name: Option<String>,
pub branch: Option<String>,
pub unset_branch: bool,
pub url: Option<String>,
pub force: bool,
pub bypass: bool,
pub options: PrintOptions,
}Expand description
The update command
Fields§
§name: Option<String>Name of the submodule to update
If not specified, all submodules will be updated.
branch: Option<String>Change the branch of the submodule
unset_branch: boolUnset the update branch of the submodule
url: Option<String>Change the url of the submodule
force: boolWhether to force the submodule to be updated
This will pass the --force flag to git submodule update.
bypass: boolBypass warnings in the submodule state
options: PrintOptionsPrint options
Implementations§
Trait Implementations§
Source§impl Args for UpdateCommand
impl Args for UpdateCommand
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 Clone for UpdateCommand
impl Clone for UpdateCommand
Source§fn clone(&self) -> UpdateCommand
fn clone(&self) -> UpdateCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CommandFactory for UpdateCommand
impl CommandFactory for UpdateCommand
Source§impl Debug for UpdateCommand
impl Debug for UpdateCommand
Source§impl FromArgMatches for UpdateCommand
impl FromArgMatches for UpdateCommand
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.Source§impl Parser for UpdateCommand
impl Parser for UpdateCommand
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Source§impl PartialEq for UpdateCommand
impl PartialEq for UpdateCommand
Source§fn eq(&self, other: &UpdateCommand) -> bool
fn eq(&self, other: &UpdateCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateCommand
Auto Trait Implementations§
impl Freeze for UpdateCommand
impl RefUnwindSafe for UpdateCommand
impl Send for UpdateCommand
impl Sync for UpdateCommand
impl Unpin for UpdateCommand
impl UnsafeUnpin for UpdateCommand
impl UnwindSafe for UpdateCommand
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