Struct argh_shared::FlagInfo
source · pub struct FlagInfo<'a> {
pub kind: FlagInfoKind<'a>,
pub optionality: Optionality,
pub long: &'a str,
pub short: Option<char>,
pub description: &'a str,
pub hidden: bool,
}
Expand description
Information about a flag or option.
Fields§
§kind: FlagInfoKind<'a>
The kind of flag.
optionality: Optionality
The optionality of the flag.
long: &'a str
The long string of the flag.
short: Option<char>
The single character short indicator for trhis flag.
description: &'a str
The description of the flag.
Visibility in the help for this argument.
false
indicates this argument will not appear
in the help message.
Trait Implementations§
source§impl<'a> PartialEq for FlagInfo<'a>
impl<'a> PartialEq for FlagInfo<'a>
impl<'a> Eq for FlagInfo<'a>
impl<'a> StructuralPartialEq for FlagInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for FlagInfo<'a>
impl<'a> RefUnwindSafe for FlagInfo<'a>
impl<'a> Send for FlagInfo<'a>
impl<'a> Sync for FlagInfo<'a>
impl<'a> Unpin for FlagInfo<'a>
impl<'a> UnwindSafe for FlagInfo<'a>
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