pub struct Command<'a> {
pub name: &'a str,
pub summary: &'a str,
}Expand description
A subcommand, as completions and the man page present it.
Fields§
§name: &'a strThe word typed to run it (create). Must be a plain name.
summary: &'a strOne line saying what it does.
Trait Implementations§
impl<'a> Copy for Command<'a>
impl<'a> Eq for Command<'a>
impl<'a> StructuralPartialEq for Command<'a>
Auto Trait Implementations§
impl<'a> Forget for Command<'a>
impl<'a> Freeze for Command<'a>
impl<'a> Move for Command<'a>
impl<'a> RefUnwindSafe for Command<'a>
impl<'a> Send for Command<'a>
impl<'a> Sync for Command<'a>
impl<'a> Unpin for Command<'a>
impl<'a> UnsafeUnpin for Command<'a>
impl<'a> UnwindSafe for Command<'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