pub struct Flag {
pub short: String,
pub full: String,
pub params: String,
pub docstring: String,
}Expand description
Specifies the structure of a flag passed to a command
Fields§
§short: StringThe short version of the flag, normally with a single hyphen
full: StringThe full version of the flag, normally specified with two leading hyphens
params: StringThe parameters that the option accepts if any
docstring: StringA description of the option and the parameters it accepts
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Flag
impl RefUnwindSafe for Flag
impl Send for Flag
impl Sync for Flag
impl Unpin 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