pub enum ArgumentFlag {
Optional,
Multiple,
MultipleToken,
}
Expand description
Flag for a command argument
Variants§
Optional
denotes that the argument is optional (for example, the GET clause of the SET command).
Multiple
denotes that the argument may be repeated (such as the key argument of DEL).
MultipleToken
denotes the possible repetition of the argument with its preceding token (see SORT’s GET pattern clause).
Trait Implementations§
Source§impl Debug for ArgumentFlag
impl Debug for ArgumentFlag
Source§impl<'de> Deserialize<'de> for ArgumentFlag
impl<'de> Deserialize<'de> for ArgumentFlag
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 ArgumentFlag
impl RefUnwindSafe for ArgumentFlag
impl Send for ArgumentFlag
impl Sync for ArgumentFlag
impl Unpin for ArgumentFlag
impl UnwindSafe for ArgumentFlag
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