pub enum OptionValueType {
Flag,
Single(ValueValidator),
Multiple(ValueValidator),
}
Expand description
Type of value an option expects
Variants§
Flag
Boolean flag (e.g., –release)
Single(ValueValidator)
Single value (e.g., –bin myapp)
Multiple(ValueValidator)
Multiple values (e.g., –features “a,b,c”)
Trait Implementations§
Source§impl Clone for OptionValueType
impl Clone for OptionValueType
Source§fn clone(&self) -> OptionValueType
fn clone(&self) -> OptionValueType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OptionValueType
impl Debug for OptionValueType
Source§impl<'de> Deserialize<'de> for OptionValueType
impl<'de> Deserialize<'de> for OptionValueType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OptionValueType
impl RefUnwindSafe for OptionValueType
impl Send for OptionValueType
impl Sync for OptionValueType
impl Unpin for OptionValueType
impl UnwindSafe for OptionValueType
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