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§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§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
)