pub struct CommandSpec {
pub name: &'static str,
pub aliases: &'static [&'static str],
pub usage: &'static str,
pub summary: &'static str,
pub details: &'static [&'static str],
pub group: CommandGroup,
}Expand description
One command’s description: what help prints, and what the parser answers to.
Fields§
§name: &'static str§aliases: &'static [&'static str]§usage: &'static strThe command with its arguments, as typed.
summary: &'static strOne line saying what it does.
details: &'static [&'static str]Further lines help <command> prints.
group: CommandGroupImplementations§
Trait Implementations§
Source§impl Clone for CommandSpec
impl Clone for CommandSpec
impl Copy for CommandSpec
Source§impl Debug for CommandSpec
impl Debug for CommandSpec
impl Eq for CommandSpec
Source§impl PartialEq for CommandSpec
impl PartialEq for CommandSpec
impl StructuralPartialEq for CommandSpec
Auto Trait Implementations§
impl Freeze for CommandSpec
impl RefUnwindSafe for CommandSpec
impl Send for CommandSpec
impl Sync for CommandSpec
impl Unpin for CommandSpec
impl UnsafeUnpin for CommandSpec
impl UnwindSafe for CommandSpec
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