pub struct CommandHelp {
pub command: String,
pub description: String,
pub usage: String,
pub exit_codes: Vec<ExitCodeInfo>,
pub error_vocabulary: Vec<ErrorCodeInfo>,
pub examples: Vec<ExampleInfo>,
}Expand description
Detailed help for a command
Fields§
§command: String§description: String§usage: String§exit_codes: Vec<ExitCodeInfo>§error_vocabulary: Vec<ErrorCodeInfo>§examples: Vec<ExampleInfo>Implementations§
Source§impl CommandHelp
impl CommandHelp
pub fn for_command(command: &str) -> Self
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