pub enum RedisValue {
Show 18 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>),
OrderedMap(BTreeMap<RedisValueKey, RedisValue>),
OrderedSet(BTreeSet<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>)
OrderedMap(BTreeMap<RedisValueKey, RedisValue>)
OrderedSet(BTreeSet<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<K: Into<RedisValueKey>, V: Into<RedisValue>> From<BTreeMap<K, V>> for RedisValue
impl<K: Into<RedisValueKey>, V: Into<RedisValue>> From<BTreeMap<K, V>> for RedisValue
Source§impl<K: Into<RedisValueKey>> From<BTreeSet<K>> for RedisValue
impl<K: Into<RedisValueKey>> From<BTreeSet<K>> for RedisValue
Source§impl<K: Into<RedisValueKey>, V: Into<RedisValue>> From<HashMap<K, V>> for RedisValue
impl<K: Into<RedisValueKey>, V: Into<RedisValue>> From<HashMap<K, V>> for RedisValue
Source§impl<K: Into<RedisValueKey>> From<HashSet<K>> for RedisValue
impl<K: Into<RedisValueKey>> From<HashSet<K>> 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 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<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§impl TryFrom<RedisValue> for String
impl TryFrom<RedisValue> for String
Source§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 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