pub enum MetaCommand {
Commands(CommandsArgs),
Schema(SchemaArgs),
Version,
Manual(ManualArgs),
Completions(CompletionsArgs),
}Expand description
The five discovery commands.
Variants§
Commands(CommandsArgs)
The command tree in structured form.
Schema(SchemaArgs)
The output contract of each command, with the type map.
Version
Identity of the product.
Manual(ManualArgs)
The product manual.
Completions(CompletionsArgs)
Shell completion support.
Implementations§
Source§impl MetaCommand
impl MetaCommand
Sourcepub const fn published_name(&self) -> &'static str
pub const fn published_name(&self) -> &'static str
The published name of this discovery command.
Trait Implementations§
Source§impl Clone for MetaCommand
impl Clone for MetaCommand
Source§impl Debug for MetaCommand
impl Debug for MetaCommand
Source§impl FromArgMatches for MetaCommand
impl FromArgMatches for MetaCommand
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for MetaCommand
impl Subcommand for MetaCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for MetaCommand
impl RefUnwindSafe for MetaCommand
impl Send for MetaCommand
impl Sync for MetaCommand
impl Unpin for MetaCommand
impl UnsafeUnpin for MetaCommand
impl UnwindSafe for MetaCommand
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