pub struct BashCliOption {
pub long: String,
pub short: Option<char>,
pub var_name: String,
pub default: Option<String>,
pub has_arg: bool,
pub help: String,
pub required: bool,
}Expand description
A command-line option for the generated argument parser.
Fields§
§long: StringLong option name (e.g. “verbose”).
short: Option<char>Short option character (e.g. ‘v’), if any.
var_name: StringVariable name to store the value in.
default: Option<String>Default value (empty string means no default).
has_arg: boolWhether the option takes an argument.
help: StringHelp text.
required: boolWhether the option is required.
Implementations§
Trait Implementations§
Source§impl Clone for BashCliOption
impl Clone for BashCliOption
Source§fn clone(&self) -> BashCliOption
fn clone(&self) -> BashCliOption
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 moreAuto Trait Implementations§
impl Freeze for BashCliOption
impl RefUnwindSafe for BashCliOption
impl Send for BashCliOption
impl Sync for BashCliOption
impl Unpin for BashCliOption
impl UnsafeUnpin for BashCliOption
impl UnwindSafe for BashCliOption
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