Enum valkey_module::redisvalue::ValkeyValueKey
source · pub enum ValkeyValueKey {
Integer(i64),
String(String),
BulkValkeyString(ValkeyString),
BulkString(Vec<u8>),
Bool(bool),
}
Variants§
Trait Implementations§
source§impl Clone for ValkeyValueKey
impl Clone for ValkeyValueKey
source§fn clone(&self) -> ValkeyValueKey
fn clone(&self) -> ValkeyValueKey
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 ValkeyValueKey
impl Debug for ValkeyValueKey
source§impl From<&String> for ValkeyValueKey
impl From<&String> for ValkeyValueKey
source§impl From<&str> for ValkeyValueKey
impl From<&str> for ValkeyValueKey
source§impl From<String> for ValkeyValueKey
impl From<String> for ValkeyValueKey
source§impl From<ValkeyString> for ValkeyValueKey
impl From<ValkeyString> for ValkeyValueKey
source§fn from(rs: ValkeyString) -> Self
fn from(rs: ValkeyString) -> Self
Converts to this type from the input type.
source§impl From<bool> for ValkeyValueKey
impl From<bool> for ValkeyValueKey
source§impl From<i64> for ValkeyValueKey
impl From<i64> for ValkeyValueKey
source§impl Hash for ValkeyValueKey
impl Hash for ValkeyValueKey
source§impl Ord for ValkeyValueKey
impl Ord for ValkeyValueKey
source§fn cmp(&self, other: &ValkeyValueKey) -> Ordering
fn cmp(&self, other: &ValkeyValueKey) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ValkeyValueKey
impl PartialEq for ValkeyValueKey
source§fn eq(&self, other: &ValkeyValueKey) -> bool
fn eq(&self, other: &ValkeyValueKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ValkeyValueKey
impl PartialOrd for ValkeyValueKey
source§fn partial_cmp(&self, other: &ValkeyValueKey) -> Option<Ordering>
fn partial_cmp(&self, other: &ValkeyValueKey) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'root> TryFrom<&CallReply<'root>> for ValkeyValueKey
impl<'root> TryFrom<&CallReply<'root>> for ValkeyValueKey
source§impl<'root> TryFrom<&Result<CallReply<'root>, ErrorReply<'root>>> for ValkeyValueKey
impl<'root> TryFrom<&Result<CallReply<'root>, ErrorReply<'root>>> for ValkeyValueKey
§type Error = ValkeyError
type Error = ValkeyError
The type returned in the event of a conversion error.
impl Eq for ValkeyValueKey
impl StructuralPartialEq for ValkeyValueKey
Auto Trait Implementations§
impl Freeze for ValkeyValueKey
impl RefUnwindSafe for ValkeyValueKey
impl !Send for ValkeyValueKey
impl !Sync for ValkeyValueKey
impl Unpin for ValkeyValueKey
impl UnwindSafe for ValkeyValueKey
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
)