Enum Optionality
pub enum Optionality {
Required,
Optional,
Repeating,
Greedy,
}
Expand description
The optionality defines the requirments related to the presence of the argument on the command line.
Variants§
Required
Required indicates the argument is required exactly once.
Optional
Optional indicates the argument may or may not be present.
Repeating
Repeating indicates the argument may appear zero or more times.
Greedy
Greedy is used for positional arguments which capture the all command line input upto the next flag or the end of the input.
Trait Implementations§
§impl Debug for Optionality
impl Debug for Optionality
§impl Default for Optionality
impl Default for Optionality
§fn default() -> Optionality
fn default() -> Optionality
Returns the “default value” for a type. Read more
§impl PartialEq for Optionality
impl PartialEq for Optionality
§impl Serialize for Optionality
impl Serialize for Optionality
§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 Eq for Optionality
impl StructuralPartialEq for Optionality
Auto Trait Implementations§
impl Freeze for Optionality
impl RefUnwindSafe for Optionality
impl Send for Optionality
impl Sync for Optionality
impl Unpin for Optionality
impl UnwindSafe for Optionality
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