pub struct CommandMeta {
pub name: &'static str,
pub syntax: &'static str,
pub summary: &'static str,
pub description: &'static str,
pub args: &'static [ArgSpec],
pub flags: &'static [FlagSpec],
pub default_output: Option<Stream>,
pub examples: &'static [Example],
}Expand description
Complete metadata for a command.
Fields§
§name: &'static str§syntax: &'static str§summary: &'static str§description: &'static str§args: &'static [ArgSpec]§flags: &'static [FlagSpec]§default_output: Option<Stream>§examples: &'static [Example]Auto Trait Implementations§
impl Freeze for CommandMeta
impl RefUnwindSafe for CommandMeta
impl Send for CommandMeta
impl Sync for CommandMeta
impl Unpin for CommandMeta
impl UnsafeUnpin for CommandMeta
impl UnwindSafe for CommandMeta
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