pub struct HelpInfo {
pub description: &'static str,
pub positionals: &'static [OptionArgInfo],
pub options: &'static [OptionArgInfo],
pub commands: Option<CommandsHelpInfo>,
pub footer: &'static str,
}Expand description
Information about a specific (sub)command used for generating a help message.
Fields§
§description: &'static str§positionals: &'static [OptionArgInfo]§options: &'static [OptionArgInfo]§commands: Option<CommandsHelpInfo>Implementations§
Source§impl HelpInfo
impl HelpInfo
Sourcepub const fn help(
&'static self,
command_name: String,
global_options: Vec<&'static OptionArgInfo>,
) -> Help
pub const fn help( &'static self, command_name: String, global_options: Vec<&'static OptionArgInfo>, ) -> Help
Creates a new Help generator instance.
command_name: The identifier for the current command.global_options: Information about additional global options (from ancestors) to add to the generated help message.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HelpInfo
impl RefUnwindSafe for HelpInfo
impl Send for HelpInfo
impl Sync for HelpInfo
impl Unpin for HelpInfo
impl UnwindSafe for HelpInfo
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