Enum darkroom::SubCommand
source · pub enum SubCommand {
Version(Version),
Take(Take),
Record(Record),
VirtualRecord(VirtualRecord),
}
Variants§
Trait Implementations§
source§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§fn eq(&self, other: &SubCommand) -> bool
fn eq(&self, other: &SubCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SubCommands for SubCommand
impl SubCommands for SubCommand
source§const COMMANDS: &'static [&'static CommandInfo] = _
const COMMANDS: &'static [&'static CommandInfo] = _
Info for the commands.
source§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 Eq 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.