Type Alias SubCommandInfo

Source
pub type SubCommandInfo = SubCommandInfo<'static>;
Expand description

Information about a subcommand.

Aliased Type§

struct SubCommandInfo {
    pub name: &'static str,
    pub command: CommandInfoWithArgs<'static>,
}

Fields§

§name: &'static str

The subcommand name.

§command: CommandInfoWithArgs<'static>

The information about the subcommand.

Trait Implementations

§

impl<'a> Clone for SubCommandInfo<'a>

§

fn clone(&self) -> SubCommandInfo<'a>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'a> Debug for SubCommandInfo<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'a> Default for SubCommandInfo<'a>

§

fn default() -> SubCommandInfo<'a>

Returns the “default value” for a type. Read more
§

impl<'a> PartialEq for SubCommandInfo<'a>

§

fn eq(&self, other: &SubCommandInfo<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<'a> Serialize for SubCommandInfo<'a>

§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<'a> Eq for SubCommandInfo<'a>

§

impl<'a> StructuralPartialEq for SubCommandInfo<'a>