pub struct Flag {
pub name: String,
pub names: Vec<String>,
pub help: String,
pub hide: bool,
pub global: GlobalFlag,
pub aliases: Vec<Alias>,
pub arg: Option<Arg>,
pub link_to: Option<String>,
}Fields§
§name: String§names: Vec<String>§help: String§hide: bool§global: GlobalFlag§aliases: Vec<Alias>§arg: Option<Arg>§link_to: Option<String>A parser entered after this flag and its value are consumed. Used by
default_subcommand_flags to continue in the default command context.
Implementations§
Trait Implementations§
impl Eq for Flag
Auto Trait Implementations§
impl Forget for Flag
impl Freeze 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