Struct PositionalInfo
pub struct PositionalInfo<'a> {
pub name: &'a str,
pub description: &'a str,
pub optionality: Optionality,
pub hidden: bool,
}
Expand description
Information about positional arguments
Fields§
§name: &'a str
Name of the argument.
description: &'a str
Description of the argument.
optionality: Optionality
Optionality of the argument.
Visibility in the help for this argument.
false
indicates this argument will not appear
in the help message.
Trait Implementations§
§impl<'a> Debug for PositionalInfo<'a>
impl<'a> Debug for PositionalInfo<'a>
§impl<'a> PartialEq for PositionalInfo<'a>
impl<'a> PartialEq for PositionalInfo<'a>
§impl<'a> Serialize for PositionalInfo<'a>
impl<'a> Serialize for PositionalInfo<'a>
§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 PositionalInfo<'a>
impl<'a> StructuralPartialEq for PositionalInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for PositionalInfo<'a>
impl<'a> RefUnwindSafe for PositionalInfo<'a>
impl<'a> Send for PositionalInfo<'a>
impl<'a> Sync for PositionalInfo<'a>
impl<'a> Unpin for PositionalInfo<'a>
impl<'a> UnwindSafe for PositionalInfo<'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