pub struct CommandHelp {
pub name: String,
pub description: String,
pub usage: String,
pub examples: Vec<String>,
pub common_mistakes: Vec<String>,
pub related_commands: Vec<String>,
pub prerequisites: Vec<String>,
pub tips: Vec<String>,
}Expand description
Help information for a specific command.
Fields§
§name: StringCommand name
description: StringBrief description
usage: StringDetailed usage information
examples: Vec<String>Examples
common_mistakes: Vec<String>Common mistakes and solutions
Related commands
prerequisites: Vec<String>Prerequisites
tips: Vec<String>Tips and tricks
Trait Implementations§
Source§impl Clone for CommandHelp
impl Clone for CommandHelp
Auto Trait Implementations§
impl Freeze for CommandHelp
impl RefUnwindSafe for CommandHelp
impl Send for CommandHelp
impl Sync for CommandHelp
impl Unpin for CommandHelp
impl UnsafeUnpin 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