pub struct CmdSpec {
pub name: &'static str,
pub doc: &'static str,
}Expand description
Specification for Cmd.
Fields§
§name: &'static strSubcommand name (usually cebab-case).
doc: &'static strDocumentation.
Implementations§
Trait Implementations§
impl Copy for CmdSpec
impl Eq for CmdSpec
impl StructuralPartialEq for CmdSpec
Auto Trait Implementations§
impl Freeze for CmdSpec
impl RefUnwindSafe for CmdSpec
impl Send for CmdSpec
impl Sync for CmdSpec
impl Unpin for CmdSpec
impl UnwindSafe for CmdSpec
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