pub struct CliConfig { /* private fields */ }
Expand description
The CLI root command definition.
Implementations§
Source§impl CliConfig
impl CliConfig
Sourcepub fn subcommands(&self) -> Option<&HashMap<String, CliConfig>>
pub fn subcommands(&self) -> Option<&HashMap<String, CliConfig>>
List of subcommands of this command
Sourcepub fn description(&self) -> Option<&String>
pub fn description(&self) -> Option<&String>
Command description which will be shown on the help information.
Sourcepub fn long_description(&self) -> Option<&String>
pub fn long_description(&self) -> Option<&String>
Command long description which will be shown on the help information.
Sourcepub fn before_help(&self) -> Option<&String>
pub fn before_help(&self) -> Option<&String>
Adds additional help information to be displayed in addition to auto-generated help. This information is displayed before the auto-generated help information. This is often used for header information.
Sourcepub fn after_help(&self) -> Option<&String>
pub fn after_help(&self) -> Option<&String>
Adds additional help information to be displayed in addition to auto-generated help. This information is displayed after the auto-generated help information. This is often used to describe how to use the arguments, or caveats to be noted.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CliConfig
impl<'de> Deserialize<'de> for CliConfig
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
impl StructuralPartialEq for CliConfig
Auto Trait Implementations§
impl Freeze for CliConfig
impl RefUnwindSafe for CliConfig
impl Send for CliConfig
impl Sync for CliConfig
impl Unpin for CliConfig
impl UnwindSafe for CliConfig
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more