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],
pub in_index: bool,
}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]§in_index: boolWhether the entry lists in the command index table. Structural
pseudo-entries with no typable keyword (e.g. MUTATION for
$var = <expr>) document in the body but stay out of the index.
Auto Trait Implementations§
impl Forget for CommandMeta
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