Enum valkey_module::redisvalue::RedisValue  
source · pub enum RedisValue {
Show 18 variants
    SimpleStringStatic(&'static str),
    SimpleString(String),
    BulkString(String),
    BulkValkeyString(ValkeyString),
    StringBuffer(Vec<u8>),
    Integer(i64),
    Bool(bool),
    Float(f64),
    BigNumber(String),
    VerbatimString((VerbatimStringFormat, Vec<u8>)),
    Array(Vec<RedisValue>),
    StaticError(&'static str),
    Map(HashMap<ValkeyValueKey, RedisValue>),
    Set(HashSet<ValkeyValueKey>),
    OrderedMap(BTreeMap<ValkeyValueKey, RedisValue>),
    OrderedSet(BTreeSet<ValkeyValueKey>),
    Null,
    NoReply,
}Variants§
SimpleStringStatic(&'static str)
SimpleString(String)
BulkString(String)
BulkValkeyString(ValkeyString)
StringBuffer(Vec<u8>)
Integer(i64)
Bool(bool)
Float(f64)
BigNumber(String)
VerbatimString((VerbatimStringFormat, Vec<u8>))
Array(Vec<RedisValue>)
StaticError(&'static str)
Map(HashMap<ValkeyValueKey, RedisValue>)
Set(HashSet<ValkeyValueKey>)
OrderedMap(BTreeMap<ValkeyValueKey, RedisValue>)
OrderedSet(BTreeSet<ValkeyValueKey>)
Null
NoReply
Trait Implementations§
source§impl Clone for RedisValue
 
impl Clone for RedisValue
source§fn clone(&self) -> RedisValue
 
fn clone(&self) -> RedisValue
Returns a copy 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 RedisValue
 
impl Debug for RedisValue
source§impl<'root> From<&CallReply<'root>> for RedisValue
 
impl<'root> From<&CallReply<'root>> for RedisValue
source§impl<'root> From<&Result<CallReply<'root>, ErrorReply<'root>>> for RedisValue
 
impl<'root> From<&Result<CallReply<'root>, ErrorReply<'root>>> for RedisValue
source§fn from(reply: &CallResult<'root>) -> Self
 
fn from(reply: &CallResult<'root>) -> Self
Converts to this type from the input type.
source§impl From<&String> for RedisValue
 
impl From<&String> for RedisValue
source§impl From<&ValkeyString> for RedisValue
 
impl From<&ValkeyString> for RedisValue
source§fn from(s: &ValkeyString) -> Self
 
fn from(s: &ValkeyString) -> Self
Converts to this type from the input type.
source§impl From<&str> for RedisValue
 
impl From<&str> for RedisValue
source§impl From<()> for RedisValue
 
impl From<()> for RedisValue
source§impl<K: Into<ValkeyValueKey>, V: Into<RedisValue>> From<BTreeMap<K, V>> for RedisValue
 
impl<K: Into<ValkeyValueKey>, V: Into<RedisValue>> From<BTreeMap<K, V>> for RedisValue
source§impl<K: Into<ValkeyValueKey>> From<BTreeSet<K>> for RedisValue
 
impl<K: Into<ValkeyValueKey>> From<BTreeSet<K>> for RedisValue
source§impl<K: Into<ValkeyValueKey>, V: Into<RedisValue>> From<HashMap<K, V>> for RedisValue
 
impl<K: Into<ValkeyValueKey>, V: Into<RedisValue>> From<HashMap<K, V>> for RedisValue
source§impl<K: Into<ValkeyValueKey>> From<HashSet<K>> for RedisValue
 
impl<K: Into<ValkeyValueKey>> From<HashSet<K>> for RedisValue
source§impl From<RedisValue> for RedisValueResult
 
impl From<RedisValue> for RedisValueResult
source§fn from(v: RedisValue) -> Self
 
fn from(v: RedisValue) -> Self
Converts to this type from the input type.
source§impl From<String> for RedisValue
 
impl From<String> for RedisValue
source§impl From<ValkeyString> for RedisValue
 
impl From<ValkeyString> for RedisValue
source§fn from(s: ValkeyString) -> Self
 
fn from(s: ValkeyString) -> Self
Converts to this type from the input type.
source§impl From<bool> for RedisValue
 
impl From<bool> for RedisValue
source§impl From<f64> for RedisValue
 
impl From<f64> for RedisValue
source§impl From<i64> for RedisValue
 
impl From<i64> for RedisValue
source§impl From<usize> for RedisValue
 
impl From<usize> for RedisValue
source§impl PartialEq for RedisValue
 
impl PartialEq for RedisValue
source§fn eq(&self, other: &RedisValue) -> bool
 
fn eq(&self, other: &RedisValue) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl TryFrom<RedisValue> for String
 
impl TryFrom<RedisValue> for String
§type Error = ValkeyError
 
type Error = ValkeyError
The type returned in the event of a conversion error.
source§fn try_from(val: RedisValue) -> Result<Self, ValkeyError>
 
fn try_from(val: RedisValue) -> Result<Self, ValkeyError>
Performs the conversion.
impl StructuralPartialEq for RedisValue
Auto Trait Implementations§
impl Freeze for RedisValue
impl RefUnwindSafe for RedisValue
impl !Send for RedisValue
impl !Sync for RedisValue
impl Unpin for RedisValue
impl UnwindSafe for RedisValue
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