pub struct Flag {
pub long: String,
pub short: Option<char>,
pub value_name: Option<String>,
pub help: String,
pub kind: FlagKind,
pub default: Option<String>,
}Expand description
A flag / option, e.g. -o, --output <FILE>.
Fields§
§long: String§short: Option<char>§value_name: Option<String>§help: String§kind: FlagKind§default: Option<String>Default value for a value-flag when the user omits it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Flag
impl Freeze for Flag
impl Move for Flag
impl RefUnwindSafe for Flag
impl Send for Flag
impl Sync for Flag
impl Unpin for Flag
impl UnsafeUnpin for Flag
impl UnwindSafe for Flag
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