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<FlagInfo<'a>> for FlagInfo<'a>
impl<'a> PartialEq<FlagInfo<'a>> for FlagInfo<'a>
source§impl<'a> Serialize for FlagInfo<'a>
impl<'a> Serialize for FlagInfo<'a>
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'a> Eq for FlagInfo<'a>
impl<'a> StructuralEq for FlagInfo<'a>
impl<'a> StructuralPartialEq for FlagInfo<'a>
Auto Trait Implementations§
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