pub struct XtaskArgs<C: Subcommand> {
pub enable_coverage: bool,
pub environment: Environment,
pub context: Context,
pub command: C,
}
Fields§
§enable_coverage: bool
Enable code coverage for Rust code if available (see coverage command for more info).
environment: Environment
Set environment (for commands that support it).
context: Context
Set context (for commands that support it).
command: C
Trait Implementations§
Source§impl<C: Subcommand> Args for XtaskArgs<C>
impl<C: Subcommand> Args for XtaskArgs<C>
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<C: Subcommand> CommandFactory for XtaskArgs<C>
impl<C: Subcommand> CommandFactory for XtaskArgs<C>
Source§impl<C: Subcommand> FromArgMatches for XtaskArgs<C>
impl<C: Subcommand> FromArgMatches for XtaskArgs<C>
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<C: Subcommand> Parser for XtaskArgs<C>
impl<C: Subcommand> Parser for XtaskArgs<C>
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)
Auto Trait Implementations§
impl<C> Freeze for XtaskArgs<C>where
C: Freeze,
impl<C> RefUnwindSafe for XtaskArgs<C>where
C: RefUnwindSafe,
impl<C> Send for XtaskArgs<C>where
C: Send,
impl<C> Sync for XtaskArgs<C>where
C: Sync,
impl<C> Unpin for XtaskArgs<C>where
C: Unpin,
impl<C> UnwindSafe for XtaskArgs<C>where
C: UnwindSafe,
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