pub struct Sub {
pub name: &'static str,
pub aliases: &'static [&'static str],
pub names: &'static [&'static str],
pub command: &'static Command,
pub about: &'static str,
pub hide: bool,
}Expand description
A subcommand as its parent lists it.
Fields§
§name: &'static strIts name.
aliases: &'static [&'static str]Other spellings shown beside it.
names: &'static [&'static str]Every spelling it answers to, hidden aliases included, for help <name>.
command: &'static CommandIts own help.
about: &'static strOne line about it.
hide: boolLeft out of the list.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sub
impl RefUnwindSafe for Sub
impl Send for Sub
impl Sync for Sub
impl Unpin for Sub
impl UnsafeUnpin for Sub
impl UnwindSafe for Sub
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