pub struct ParameterSubgroup<'a> {
pub description: Description<'a>,
pub id: &'a str,
pub title: &'a str,
pub placeholder: &'a str,
pub contents: UsageItems<'a>,
}Expand description
Details about a subgroup of additional parameters. Subgroups allow parameters to be nested, and additionally allow different kinds of parameter sets to coexist. For instance, a struct of global flags will use a subgroup to express any subcommands it wants.
Fields§
§description: Description<'a>The description text for this group. Not usually printed.
id: &'a strThe identifier for this group. Not usually shown to the user in a usage message. I’d prefer to omit it entirely, but we use it to help look up the usage messages of individual subcommands (by traversing nested subgroups).
title: &'a strWhen used as a group of items, the name of the group we show to the user. Usually Title Cased.
placeholder: &'a strWhen used as a placeholder, the name of the group we show to the user. Usually SHOUTY_SNAKE_CASED. Generally only used to refer to a subcommand in a synopsis.
contents: UsageItems<'a>The contents of this group.
Trait Implementations§
Source§impl<'a> Clone for ParameterSubgroup<'a>
impl<'a> Clone for ParameterSubgroup<'a>
Source§fn clone(&self) -> ParameterSubgroup<'a>
fn clone(&self) -> ParameterSubgroup<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more