Enum redis_module::redisvalue::RedisValue
source · pub enum RedisValue {
Show 16 variants
SimpleStringStatic(&'static str),
SimpleString(String),
BulkString(String),
BulkRedisString(RedisString),
StringBuffer(Vec<u8>),
Integer(i64),
Bool(bool),
Float(f64),
BigNumber(String),
VerbatimString((VerbatimStringFormat, Vec<u8>)),
Array(Vec<RedisValue>),
StaticError(&'static str),
Map(HashMap<RedisValueKey, RedisValue>),
Set(HashSet<RedisValueKey>),
Null,
NoReply,
}
Variants§
SimpleStringStatic(&'static str)
SimpleString(String)
BulkString(String)
BulkRedisString(RedisString)
StringBuffer(Vec<u8>)
Integer(i64)
Bool(bool)
Float(f64)
BigNumber(String)
VerbatimString((VerbatimStringFormat, Vec<u8>))
Array(Vec<RedisValue>)
StaticError(&'static str)
Map(HashMap<RedisValueKey, RedisValue>)
Set(HashSet<RedisValueKey>)
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 From<&RedisString> for RedisValue
impl From<&RedisString> for RedisValue
source§fn from(s: &RedisString) -> Self
fn from(s: &RedisString) -> Self
Converts to this type from the input type.
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<&str> for RedisValue
impl From<&str> for RedisValue
source§impl From<()> for RedisValue
impl From<()> for RedisValue
source§impl From<RedisString> for RedisValue
impl From<RedisString> for RedisValue
source§fn from(s: RedisString) -> Self
fn from(s: RedisString) -> Self
Converts to this type from the input type.
source§impl From<RedisValue> for RedisResult
impl From<RedisValue> for RedisResult
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<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<RedisValue> for RedisValue
impl PartialEq<RedisValue> 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 = RedisError
type Error = RedisError
The type returned in the event of a conversion error.
source§fn try_from(val: RedisValue) -> Result<Self, RedisError>
fn try_from(val: RedisValue) -> Result<Self, RedisError>
Performs the conversion.
impl StructuralPartialEq for RedisValue
Auto Trait Implementations§
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