Struct argh_shared::CommandInfoWithArgs
source · 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§fn eq(&self, other: &CommandInfoWithArgs<'a>) -> bool
fn eq(&self, other: &CommandInfoWithArgs<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)