pub struct Flag {
pub identifier: &'static str,
pub flag_help: &'static str,
pub required: bool,
}
Expand description
Represents a flag for a command.
Fields§
§identifier: &'static str
This identifier should be the letter or phrase that signifies the flag. This should not include ‘-’. This should also not include ‘-h’, as that is reserved for displaying help information.
flag_help: &'static str
Help text for this flag.
required: bool
Whether or not this flag is required for the command to be used.
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