Struct argh_shared::SubCommandInfo
source · pub struct SubCommandInfo<'a> {
pub name: &'a str,
pub command: CommandInfoWithArgs<'a>,
}
Expand description
Information about a subcommand. Dynamic subcommands do not implement get_args_info(), so the command field only contains the name and description.
Fields§
§name: &'a str
The subcommand name.
command: CommandInfoWithArgs<'a>
The information about the subcommand.
Trait Implementations§
source§impl<'a> Clone for SubCommandInfo<'a>
impl<'a> Clone for SubCommandInfo<'a>
source§fn clone(&self) -> SubCommandInfo<'a>
fn clone(&self) -> SubCommandInfo<'a>
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<'a> Debug for SubCommandInfo<'a>
impl<'a> Debug for SubCommandInfo<'a>
source§impl<'a> Default for SubCommandInfo<'a>
impl<'a> Default for SubCommandInfo<'a>
source§fn default() -> SubCommandInfo<'a>
fn default() -> SubCommandInfo<'a>
Returns the “default value” for a type. Read more
source§impl<'a> PartialEq for SubCommandInfo<'a>
impl<'a> PartialEq for SubCommandInfo<'a>
source§fn eq(&self, other: &SubCommandInfo<'a>) -> bool
fn eq(&self, other: &SubCommandInfo<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for SubCommandInfo<'a>
impl<'a> Serialize for SubCommandInfo<'a>
impl<'a> Eq for SubCommandInfo<'a>
impl<'a> StructuralPartialEq for SubCommandInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for SubCommandInfo<'a>
impl<'a> RefUnwindSafe for SubCommandInfo<'a>
impl<'a> Send for SubCommandInfo<'a>
impl<'a> Sync for SubCommandInfo<'a>
impl<'a> Unpin for SubCommandInfo<'a>
impl<'a> UnwindSafe for SubCommandInfo<'a>
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)