pub struct Command {
pub name: &'static str,
pub help: &'static [(&'static str, &'static str)],
pub subs: &'static [&'static str],
pub flags: &'static [&'static str],
pub path: bool,
}Expand description
One command: its name, its help rows (the arguments after the name, what it does), and for the shells its subcommands, its flags and whether it takes a path.
Fields§
§name: &'static str§help: &'static [(&'static str, &'static str)]§subs: &'static [&'static str]§flags: &'static [&'static str]§path: boolAuto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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