pub struct FlagSpec {
pub name: String,
pub kind: &'static str,
pub required: bool,
pub values: Vec<String>,
}Expand description
One long-flagged argument, read from the clap grammar: its --name, value
kind ("boolean" / "array" / "string", the docs/explain type
vocabulary), whether clap requires it, and its enum values (empty when the
value is free-form).
Fields§
§name: String§kind: &'static str§required: bool§values: Vec<String>Auto Trait Implementations§
impl Freeze for FlagSpec
impl RefUnwindSafe for FlagSpec
impl Send for FlagSpec
impl Sync for FlagSpec
impl Unpin for FlagSpec
impl UnsafeUnpin for FlagSpec
impl UnwindSafe for FlagSpec
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