pub struct ArgumentHelp {
pub name: String,
pub short: Option<String>,
pub long: Option<String>,
pub help: String,
pub required: bool,
pub default_value: Option<String>,
pub takes_value: bool,
pub possible_values: Vec<String>,
}Expand description
Help information for a single argument or option
Fields§
§name: StringArgument name
short: Option<String>Short flag (e.g., “-v”)
long: Option<String>Long flag (e.g., “–verbose”)
help: StringHelp text
required: boolWhether this argument is required
default_value: Option<String>Default value if any
takes_value: boolWhether this option takes a value
possible_values: Vec<String>Possible values (for enums/choices)
Trait Implementations§
Source§impl Clone for ArgumentHelp
impl Clone for ArgumentHelp
Source§fn clone(&self) -> ArgumentHelp
fn clone(&self) -> ArgumentHelp
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 ArgumentHelp
impl Debug for ArgumentHelp
Source§impl<'de> Deserialize<'de> for ArgumentHelp
impl<'de> Deserialize<'de> for ArgumentHelp
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
Auto Trait Implementations§
impl Freeze for ArgumentHelp
impl RefUnwindSafe for ArgumentHelp
impl Send for ArgumentHelp
impl Sync for ArgumentHelp
impl Unpin for ArgumentHelp
impl UnwindSafe for ArgumentHelp
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