pub struct CommandHelp {
pub name: String,
pub about: String,
pub arguments: Vec<ArgumentHelp>,
pub options: Vec<ArgumentHelp>,
pub subcommands: Vec<CommandHelp>,
pub examples: Vec<String>,
}Expand description
Help information for a single command
Fields§
§name: StringCommand name
about: StringCommand description
arguments: Vec<ArgumentHelp>Positional arguments
options: Vec<ArgumentHelp>Optional flags and options
subcommands: Vec<CommandHelp>Nested subcommands (if any)
examples: Vec<String>Example invocations
Trait Implementations§
Source§impl Clone for CommandHelp
impl Clone for CommandHelp
Source§fn clone(&self) -> CommandHelp
fn clone(&self) -> CommandHelp
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandHelp
impl Debug for CommandHelp
Source§impl<'de> Deserialize<'de> for CommandHelp
impl<'de> Deserialize<'de> for CommandHelp
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommandHelp
impl RefUnwindSafe for CommandHelp
impl Send for CommandHelp
impl Sync for CommandHelp
impl Unpin for CommandHelp
impl UnwindSafe for CommandHelp
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