pub enum SubCommand {
Buses(BusesCommand),
Read(ReadBarCommand),
}
Variants§
Buses(BusesCommand)
Read(ReadBarCommand)
Trait Implementations§
Source§impl Clone for SubCommand
impl Clone for SubCommand
Source§fn clone(&self) -> SubCommand
fn clone(&self) -> SubCommand
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SubCommand
impl Debug for SubCommand
Source§impl FromArgs for SubCommand
impl FromArgs for SubCommand
Source§fn from_args(command_name: &[&str], args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(command_name: &[&str], args: &[&str]) -> Result<Self, EarlyExit>
Construct the type from an input set of arguments. Read more
Source§fn redact_arg_values(
command_name: &[&str],
args: &[&str],
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values( command_name: &[&str], args: &[&str], ) -> Result<Vec<String>, EarlyExit>
Get a String with just the argument names, e.g., options, flags, subcommands, etc, but
without the values of the options and arguments. This can be useful as a means to capture
anonymous usage statistics without revealing the content entered by the end user. Read more
Source§impl PartialEq for SubCommand
impl PartialEq for SubCommand
Source§impl SubCommands for SubCommand
impl SubCommands for SubCommand
§fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
Get a list of commands that are discovered at runtime.
impl Copy for SubCommand
impl StructuralPartialEq for SubCommand
Auto Trait Implementations§
impl Freeze for SubCommand
impl RefUnwindSafe for SubCommand
impl Send for SubCommand
impl Sync for SubCommand
impl Unpin for SubCommand
impl UnwindSafe for SubCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)