#[repr(u32)]pub enum RedisModuleCommandArgKind {
String = 0,
Integer = 1,
Double = 2,
Key = 3,
Pattern = 4,
UnixTime = 5,
PureToken = 6,
OneOf = 7,
Block = 8,
}
Variants§
String = 0
String argument.
Integer = 1
Integer argument.
Double = 2
Double-precision float argument.
Key = 3
String argument representing a keyname.
Pattern = 4
String, but regex pattern.
UnixTime = 5
Integer, but Unix timestamp.
PureToken = 6
Argument doesn’t have a placeholder. It’s just a token without a value. Example: the KEEPTTL option of the SET command.
OneOf = 7
Used when the user can choose only one of a few sub-arguments. Requires subargs. Example: the NX and XX options of SET.
Block = 8
Used when one wants to group together several sub-arguments, usually to apply something on all of them, like making the entire group “optional”. Requires subargs. Example: the LIMIT offset count parameters in ZRANGE.
Trait Implementations§
Source§impl Clone for RedisModuleCommandArgKind
impl Clone for RedisModuleCommandArgKind
Source§fn clone(&self) -> RedisModuleCommandArgKind
fn clone(&self) -> RedisModuleCommandArgKind
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 RedisModuleCommandArgKind
impl Debug for RedisModuleCommandArgKind
Source§impl Hash for RedisModuleCommandArgKind
impl Hash for RedisModuleCommandArgKind
Source§impl Ord for RedisModuleCommandArgKind
impl Ord for RedisModuleCommandArgKind
Source§fn cmp(&self, other: &RedisModuleCommandArgKind) -> Ordering
fn cmp(&self, other: &RedisModuleCommandArgKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for RedisModuleCommandArgKind
impl PartialOrd for RedisModuleCommandArgKind
impl Copy for RedisModuleCommandArgKind
impl Eq for RedisModuleCommandArgKind
impl StructuralPartialEq for RedisModuleCommandArgKind
Auto Trait Implementations§
impl Freeze for RedisModuleCommandArgKind
impl RefUnwindSafe for RedisModuleCommandArgKind
impl Send for RedisModuleCommandArgKind
impl Sync for RedisModuleCommandArgKind
impl Unpin for RedisModuleCommandArgKind
impl UnwindSafe for RedisModuleCommandArgKind
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