pub struct Argument {
pub name: String,
pub key: Vec<String>,
pub argument_occurrence: ArgumentOccurrence,
pub value_type: ArgumentValueType,
pub default_value: Option<String>,
pub help: Option<ArgumentHelp>,
}
Expand description
Holds the command line argument spec
Fields
name: String
Unique name for the argument later used to pull the parsed information
key: Vec<String>
All possible argument keys in the command line (for example: vec![“–env”.to_string(), “-e”.to_string()])
argument_occurrence: ArgumentOccurrence
The argument occurrence (see enum)
value_type: ArgumentValueType
The possible value type for this specific argument
default_value: Option<String>
Default value if not found
help: Option<ArgumentHelp>
Help text
Trait Implementations
impl StructuralPartialEq for Argument
Auto Trait Implementations
impl RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl UnwindSafe for Argument
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more