#[non_exhaustive]pub enum MultiSlotArgPattern {
KeysOnly,
KeyValuePairs,
KeysAndLastArg,
KeyWithTwoArgTriples,
}Available on crate feature
cluster only.Expand description
Represents the pattern of argument structures in multi-slot commands, defining how the arguments are organized in the command.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
KeysOnly
Pattern where only keys are provided in the command.
For example: MGET key1 key2
KeyValuePairs
Pattern where each key is followed by a corresponding value.
For example: MSET key1 value1 key2 value2
KeysAndLastArg
Pattern where a list of keys is followed by a shared parameter.
For example: JSON.MGET key1 key2 key3 path
KeyWithTwoArgTriples
Pattern where each key is followed by two associated arguments, forming key-argument-argument triples.
For example: JSON.MSET key1 path1 value1 key2 path2 value2
Trait Implementations§
Source§impl Clone for MultiSlotArgPattern
impl Clone for MultiSlotArgPattern
Source§fn clone(&self) -> MultiSlotArgPattern
fn clone(&self) -> MultiSlotArgPattern
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 MultiSlotArgPattern
impl Debug for MultiSlotArgPattern
Source§impl PartialEq for MultiSlotArgPattern
impl PartialEq for MultiSlotArgPattern
impl StructuralPartialEq for MultiSlotArgPattern
Auto Trait Implementations§
impl Freeze for MultiSlotArgPattern
impl RefUnwindSafe for MultiSlotArgPattern
impl Send for MultiSlotArgPattern
impl Sync for MultiSlotArgPattern
impl Unpin for MultiSlotArgPattern
impl UnwindSafe for MultiSlotArgPattern
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