pub struct Arg {Show 13 fields
pub name: String,
pub repr: String,
pub required: bool,
pub choices: Vec<String>,
pub hide: bool,
pub var: bool,
pub min: Option<i128>,
pub max: Option<i128>,
pub default: Option<String>,
pub double_dash: DoubleDash,
pub skip_after_double_dash: bool,
pub link_after: Option<String>,
pub sigil: Option<String>,
}Fields§
§name: String§repr: String§required: bool§choices: Vec<String>§hide: bool§var: bool§min: Option<i128>§max: Option<i128>§default: Option<String>§double_dash: DoubleDash§skip_after_double_dash: boolSkip this positional after Clink has consumed --, allowing a later
double_dash=required argument to receive the current word.
link_after: Option<String>Continue parsing with this generated matcher after consuming the argument.
sigil: Option<String>A leading prefix that classifies this argument independently of its place in
the positional sequence, e.g. + for +node. The prefix is removed before the
value is stored or completed.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Arg
impl Freeze for Arg
impl RefUnwindSafe for Arg
impl Send for Arg
impl Sync for Arg
impl Unpin for Arg
impl UnsafeUnpin for Arg
impl UnwindSafe for Arg
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