Enum valkey_module::redisvalue::ValkeyValue
source · 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 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 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§fn eq(&self, other: &ValkeyValue) -> bool
fn eq(&self, other: &ValkeyValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<ValkeyValue> for String
impl TryFrom<ValkeyValue> for String
§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)