pub struct CommandMeta {
pub name: &'static str,
pub synopsis: &'static str,
pub description: &'static str,
pub options: &'static [(&'static str, &'static str)],
pub supports_help_flag: bool,
pub flags: &'static [FlagInfo],
}Expand description
Declarative metadata for a command, used by –help and the help builtin.
Fields§
§name: &'static str§synopsis: &'static str§description: &'static str§options: &'static [(&'static str, &'static str)]§supports_help_flag: bool§flags: &'static [FlagInfo]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