pub struct OpenCliCommand {
    pub name: String,
    pub aliases: Vec<String>,
    pub options: Vec<OpenCliOption>,
    pub arguments: Vec<OpenCliArgument>,
    pub commands: Vec<OpenCliCommand>,
    pub exit_codes: Vec<OpenCliExitCode>,
    pub description: Option<String>,
    pub hidden: Option<bool>,
    pub examples: Vec<String>,
    pub interactive: Option<bool>,
    pub metadata: Vec<OpenCliMetadata>,
}Fields§
§name: StringThe command name
aliases: Vec<String>The command aliases
options: Vec<OpenCliOption>The command’s options
arguments: Vec<OpenCliArgument>The command’s arguments
commands: Vec<OpenCliCommand>The command’s sub commands
exit_codes: Vec<OpenCliExitCode>The command’s exit codes
description: Option<String>The command description
Whether or not the command is hidden
examples: Vec<String>Examples of how to use the command
interactive: Option<bool>Indicates whether or not the command requires interactive input
metadata: Vec<OpenCliMetadata>Custom metadata
Trait Implementations§
Source§impl Clone for OpenCliCommand
 
impl Clone for OpenCliCommand
Source§fn clone(&self) -> OpenCliCommand
 
fn clone(&self) -> OpenCliCommand
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 OpenCliCommand
 
impl Debug for OpenCliCommand
Source§impl Default for OpenCliCommand
 
impl Default for OpenCliCommand
Source§fn default() -> OpenCliCommand
 
fn default() -> OpenCliCommand
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OpenCliCommand
 
impl<'de> Deserialize<'de> for OpenCliCommand
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
Source§impl PartialEq for OpenCliCommand
 
impl PartialEq for OpenCliCommand
Source§impl Serialize for OpenCliCommand
 
impl Serialize for OpenCliCommand
impl StructuralPartialEq for OpenCliCommand
Auto Trait Implementations§
impl Freeze for OpenCliCommand
impl RefUnwindSafe for OpenCliCommand
impl Send for OpenCliCommand
impl Sync for OpenCliCommand
impl Unpin for OpenCliCommand
impl UnwindSafe for OpenCliCommand
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