pub struct HelpConfig {
pub program_name: Option<String>,
pub version: Option<String>,
pub description: Option<String>,
pub width: usize,
}Expand description
Configuration for help text generation.
Fields§
§program_name: Option<String>Program name (defaults to executable name)
version: Option<String>Program version
description: Option<String>Additional description to show after the auto-generated one
width: usizeWidth for wrapping text (0 = no wrapping)
Trait Implementations§
Source§impl Clone for HelpConfig
impl Clone for HelpConfig
Source§fn clone(&self) -> HelpConfig
fn clone(&self) -> HelpConfig
Returns a duplicate 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 Debug for HelpConfig
impl Debug for HelpConfig
Auto Trait Implementations§
impl Freeze for HelpConfig
impl RefUnwindSafe for HelpConfig
impl Send for HelpConfig
impl Sync for HelpConfig
impl Unpin for HelpConfig
impl UnwindSafe for HelpConfig
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