pub struct CommandInfoWithArgs<'a> {
pub name: &'a str,
pub description: &'a str,
pub examples: &'a [&'a str],
pub flags: &'a [FlagInfo<'a>],
pub notes: &'a [&'a str],
pub commands: Vec<SubCommandInfo<'a>>,
pub positionals: &'a [PositionalInfo<'a>],
pub error_codes: &'a [ErrorCodeInfo<'a>],
}
Expand description
Information about the command line arguments for a given command.
Fields§
§name: &'a str
The name of the command.
description: &'a str
A short description of the command’s functionality.
examples: &'a [&'a str]
Examples of usage
flags: &'a [FlagInfo<'a>]
Flags
notes: &'a [&'a str]
Notes about usage
commands: Vec<SubCommandInfo<'a>>
The subcommands.
positionals: &'a [PositionalInfo<'a>]
Positional args
error_codes: &'a [ErrorCodeInfo<'a>]
Error code information
Trait Implementations§
Source§impl<'a> Clone for CommandInfoWithArgs<'a>
impl<'a> Clone for CommandInfoWithArgs<'a>
Source§fn clone(&self) -> CommandInfoWithArgs<'a>
fn clone(&self) -> CommandInfoWithArgs<'a>
Returns a copy 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<'a> Debug for CommandInfoWithArgs<'a>
impl<'a> Debug for CommandInfoWithArgs<'a>
Source§impl<'a> Default for CommandInfoWithArgs<'a>
impl<'a> Default for CommandInfoWithArgs<'a>
Source§fn default() -> CommandInfoWithArgs<'a>
fn default() -> CommandInfoWithArgs<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> PartialEq for CommandInfoWithArgs<'a>
impl<'a> PartialEq for CommandInfoWithArgs<'a>
Source§impl<'a> Serialize for CommandInfoWithArgs<'a>
impl<'a> Serialize for CommandInfoWithArgs<'a>
impl<'a> Eq for CommandInfoWithArgs<'a>
impl<'a> StructuralPartialEq for CommandInfoWithArgs<'a>
Auto Trait Implementations§
impl<'a> Freeze for CommandInfoWithArgs<'a>
impl<'a> RefUnwindSafe for CommandInfoWithArgs<'a>
impl<'a> Send for CommandInfoWithArgs<'a>
impl<'a> Sync for CommandInfoWithArgs<'a>
impl<'a> Unpin for CommandInfoWithArgs<'a>
impl<'a> UnwindSafe for CommandInfoWithArgs<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)