pub enum ValkeyValue {
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<ValkeyValue>),
StaticError(&'static str),
Map(HashMap<ValkeyValueKey, ValkeyValue>),
Set(HashSet<ValkeyValueKey>),
OrderedMap(BTreeMap<ValkeyValueKey, ValkeyValue>),
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<ValkeyValue>)
StaticError(&'static str)
Map(HashMap<ValkeyValueKey, ValkeyValue>)
Set(HashSet<ValkeyValueKey>)
OrderedMap(BTreeMap<ValkeyValueKey, ValkeyValue>)
OrderedSet(BTreeSet<ValkeyValueKey>)
Null
NoReply
Trait Implementations§
Source§impl Clone for ValkeyValue
impl Clone for ValkeyValue
Source§fn clone(&self) -> ValkeyValue
fn clone(&self) -> ValkeyValue
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 ValkeyValue
impl Debug for ValkeyValue
Source§impl<'root> From<&CallReply<'root>> for ValkeyValue
impl<'root> From<&CallReply<'root>> for ValkeyValue
Source§impl<'root> From<&Result<CallReply<'root>, ErrorReply<'root>>> for ValkeyValue
impl<'root> From<&Result<CallReply<'root>, ErrorReply<'root>>> for ValkeyValue
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 ValkeyValue
impl From<&String> for ValkeyValue
Source§impl From<&ValkeyString> for ValkeyValue
impl From<&ValkeyString> for ValkeyValue
Source§fn from(s: &ValkeyString) -> Self
fn from(s: &ValkeyString) -> Self
Converts to this type from the input type.
Source§impl From<&str> for ValkeyValue
impl From<&str> for ValkeyValue
Source§impl From<()> for ValkeyValue
impl From<()> for ValkeyValue
Source§impl<K: Into<ValkeyValueKey>, V: Into<ValkeyValue>> From<BTreeMap<K, V>> for ValkeyValue
impl<K: Into<ValkeyValueKey>, V: Into<ValkeyValue>> From<BTreeMap<K, V>> for ValkeyValue
Source§impl<K: Into<ValkeyValueKey>> From<BTreeSet<K>> for ValkeyValue
impl<K: Into<ValkeyValueKey>> From<BTreeSet<K>> for ValkeyValue
Source§impl<K: Into<ValkeyValueKey>, V: Into<ValkeyValue>> From<HashMap<K, V>> for ValkeyValue
impl<K: Into<ValkeyValueKey>, V: Into<ValkeyValue>> From<HashMap<K, V>> for ValkeyValue
Source§impl<K: Into<ValkeyValueKey>> From<HashSet<K>> for ValkeyValue
impl<K: Into<ValkeyValueKey>> From<HashSet<K>> for ValkeyValue
Source§impl From<String> for ValkeyValue
impl From<String> for ValkeyValue
Source§impl From<ValkeyString> for ValkeyValue
impl From<ValkeyString> for ValkeyValue
Source§fn from(s: ValkeyString) -> Self
fn from(s: ValkeyString) -> Self
Converts to this type from the input type.
Source§impl From<ValkeyValue> for ValkeyValueResult
impl From<ValkeyValue> for ValkeyValueResult
Source§fn from(v: ValkeyValue) -> Self
fn from(v: ValkeyValue) -> Self
Converts to this type from the input type.
Source§impl From<bool> for ValkeyValue
impl From<bool> for ValkeyValue
Source§impl From<f64> for ValkeyValue
impl From<f64> for ValkeyValue
Source§impl From<i64> for ValkeyValue
impl From<i64> for ValkeyValue
Source§impl From<usize> for ValkeyValue
impl From<usize> for ValkeyValue
Source§impl PartialEq for ValkeyValue
impl PartialEq for ValkeyValue
Source§impl TryFrom<ValkeyValue> for String
impl TryFrom<ValkeyValue> for String
Source§type Error = ValkeyError
type Error = ValkeyError
The type returned in the event of a conversion error.
Source§fn try_from(val: ValkeyValue) -> Result<Self, ValkeyError>
fn try_from(val: ValkeyValue) -> Result<Self, ValkeyError>
Performs the conversion.
impl StructuralPartialEq for ValkeyValue
Auto Trait Implementations§
impl Freeze for ValkeyValue
impl RefUnwindSafe for ValkeyValue
impl !Send for ValkeyValue
impl !Sync for ValkeyValue
impl Unpin for ValkeyValue
impl UnwindSafe for ValkeyValue
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