pub struct HelpPage {
pub app_name: String,
pub version: Option<String>,
pub path: String,
pub summary: Option<String>,
pub description: Option<String>,
pub usage: String,
pub positionals: Vec<HelpArg>,
pub options: Vec<HelpOption>,
pub subcommands: Vec<HelpSubcommand>,
pub examples: Vec<String>,
pub notes: Vec<String>,
}Expand description
everything we need to print help for a command path.
Fields§
§app_name: StringName of the binary / application (e.g. “git”)
version: Option<String>Application version (from clap metadata).
path: StringFull command path (e.g. “commit main”)
summary: Option<String>One-line summary (from clap)
description: Option<String>Optional longer description
usage: StringUsage string (from clap)
positionals: Vec<HelpArg>Positional arguments
options: Vec<HelpOption>Flags and options
subcommands: Vec<HelpSubcommand>Subcommands (for category-level help)
examples: Vec<String>Examples
notes: Vec<String>Notes / tips / caveats
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HelpPage
impl RefUnwindSafe for HelpPage
impl Send for HelpPage
impl Sync for HelpPage
impl Unpin for HelpPage
impl UnwindSafe for HelpPage
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