pub struct RemoteChoiceArgs {
pub remote: Option<String>,
}Expand description
--remote flag with no injected default.
Resolution order (see RemoteChoiceArgs::requested): explicit flag,
else the configured default from heddle remote set-default, else an
actionable error. Never injects origin.
Fields§
§remote: Option<String>Hosted remote name. Omit to use heddle remote set-default.
Implementations§
Trait Implementations§
Source§impl Args for RemoteChoiceArgs
impl Args for RemoteChoiceArgs
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 RemoteChoiceArgs
impl Clone for RemoteChoiceArgs
Source§impl Debug for RemoteChoiceArgs
impl Debug for RemoteChoiceArgs
Source§impl Default for RemoteChoiceArgs
impl Default for RemoteChoiceArgs
Source§impl FromArgMatches for RemoteChoiceArgs
impl FromArgMatches for RemoteChoiceArgs
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 RemoteChoiceArgs
impl RefUnwindSafe for RemoteChoiceArgs
impl Send for RemoteChoiceArgs
impl Sync for RemoteChoiceArgs
impl Unpin for RemoteChoiceArgs
impl UnsafeUnpin for RemoteChoiceArgs
impl UnwindSafe for RemoteChoiceArgs
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