Enum fred::types::RedisValue
source · pub enum RedisValue {
Boolean(bool),
Integer(i64),
Double(f64),
String(Str),
Bytes(Bytes),
Null,
Queued,
Map(RedisMap),
Array(Vec<RedisValue>),
}
Expand description
A value used in a Redis command.
Variants§
Boolean(bool)
A boolean value.
Integer(i64)
An integer value.
Double(f64)
A double floating point number.
String(Str)
A string value.
Bytes(Bytes)
A byte array value.
Null
A nil
value.
Queued
A special value used to indicate a MULTI block command was received by the server.
Map(RedisMap)
A map of key/value pairs, primarily used in RESP3 mode.
Array(Vec<RedisValue>)
An ordered list of values.
In RESP2 mode the server usually sends map structures as an array of key/value pairs.
Implementations§
source§impl RedisValue
impl RedisValue
sourcepub fn from_static(b: &'static [u8]) -> Self
pub fn from_static(b: &'static [u8]) -> Self
Create a new RedisValue::Bytes
from a static byte slice without copying.
sourcepub fn from_static_str(s: &'static str) -> Self
pub fn from_static_str(s: &'static str) -> Self
Create a new RedisValue::String
from a static str
without copying.
sourcepub fn into_integer(self) -> Result<RedisValue, RedisValue>
pub fn into_integer(self) -> Result<RedisValue, RedisValue>
Attempt to convert the value into an integer, returning the original string as an error if the parsing fails.
sourcepub fn kind(&self) -> RedisValueKind
pub fn kind(&self) -> RedisValueKind
Read the type of the value without any associated data.
sourcepub fn is_integer(&self) -> bool
pub fn is_integer(&self) -> bool
Check if the value is an integer.
sourcepub fn is_boolean(&self) -> bool
pub fn is_boolean(&self) -> bool
Whether the value is a boolean value or can be parsed as a boolean value.
sourcepub fn is_double(&self) -> bool
pub fn is_double(&self) -> bool
Whether the inner value is a double or can be parsed as a double.
sourcepub fn is_aggregate_type(&self) -> bool
pub fn is_aggregate_type(&self) -> bool
Whether the value is an array or map.
sourcepub fn is_map(&self) -> bool
pub fn is_map(&self) -> bool
Whether the value is a RedisMap
.
See is_maybe_map for a function that also checks for arrays that likely represent a map in RESP2 mode.
sourcepub fn is_maybe_map(&self) -> bool
pub fn is_maybe_map(&self) -> bool
Whether the value is a RedisMap
or an array with an even number of elements where each even-numbered
element is not an aggregate type.
RESP2 and RESP3 encode maps differently, and this function can be used to duck-type maps across protocol versions.
sourcepub fn as_usize(&self) -> Option<usize>
pub fn as_usize(&self) -> Option<usize>
Read and return the inner value as a usize
, if possible.
sourcepub fn into_string(self) -> Option<String>
pub fn into_string(self) -> Option<String>
Read and return the inner String
if the value is a string or scalar value.
sourcepub fn into_bytes_str(self) -> Option<Str>
pub fn into_bytes_str(self) -> Option<Str>
Read and return the inner data as a Str
from the bytes
crate.
sourcepub fn as_bytes_str(&self) -> Option<Str>
pub fn as_bytes_str(&self) -> Option<Str>
Read the inner value as a Str
.
sourcepub fn as_string(&self) -> Option<String>
pub fn as_string(&self) -> Option<String>
Read and return the inner String
if the value is a string or scalar value.
Note: this will cast integers and doubles to strings.
sourcepub fn as_str(&self) -> Option<Cow<'_, str>>
pub fn as_str(&self) -> Option<Cow<'_, str>>
Read the inner value as a string slice.
Null is returned as "nil"
and scalar values are cast to a string.
sourcepub fn as_str_lossy(&self) -> Option<Cow<'_, str>>
pub fn as_str_lossy(&self) -> Option<Cow<'_, str>>
Read the inner value as a string, using String::from_utf8_lossy
on byte slices.
sourcepub fn as_bytes(&self) -> Option<&[u8]>
pub fn as_bytes(&self) -> Option<&[u8]>
Read the inner value as an array of bytes, if possible.
sourcepub fn into_map(self) -> Result<RedisMap, RedisError>
pub fn into_map(self) -> Result<RedisMap, RedisError>
Attempt to convert this value to a Redis map if it’s an array with an even number of elements.
sourcepub fn into_set(self) -> Result<HashSet<RedisValue>, RedisError>
pub fn into_set(self) -> Result<HashSet<RedisValue>, RedisError>
Convert the array value to a set, if possible.
sourcepub fn into_zset_result(self) -> Result<Vec<(RedisValue, f64)>, RedisError>
pub fn into_zset_result(self) -> Result<Vec<(RedisValue, f64)>, RedisError>
Convert a RedisValue
to Vec<(RedisValue, f64)>
, if possible.
sourcepub fn into_array(self) -> Vec<RedisValue>
pub fn into_array(self) -> Vec<RedisValue>
Convert this value to an array if it’s an array or map.
If the value is not an array or map this returns a single-element array containing the current value.
sourcepub fn into_owned_bytes(self) -> Option<Vec<u8>>
pub fn into_owned_bytes(self) -> Option<Vec<u8>>
Convert the value to an array of bytes, if possible.
sourcepub fn into_bytes(self) -> Option<Bytes>
pub fn into_bytes(self) -> Option<Bytes>
Convert the value into a Bytes
view.
sourcepub fn array_len(&self) -> Option<usize>
pub fn array_len(&self) -> Option<usize>
Return the length of the inner array if the value is an array.
sourcepub fn flatten_array_values(self, depth: usize) -> Self
pub fn flatten_array_values(self, depth: usize) -> Self
Flatten adjacent nested arrays to the provided depth.
See the XREAD documentation for an example of when this might be useful.
sourcepub fn into_xread_response<K1, I, K2, V>(
self
) -> Result<XReadResponse<K1, I, K2, V>, RedisError>
Available on crate feature i-streams
only.
pub fn into_xread_response<K1, I, K2, V>( self ) -> Result<XReadResponse<K1, I, K2, V>, RedisError>
i-streams
only.A utility function to convert the response from XREAD
or XREADGROUP
into a type with a less verbose type
declaration.
This function supports responses in both RESP2 and RESP3 formats.
See the XREAD (or XREADGROUP
) documentation for more
information.
sourcepub fn into_xread_value<I, K, V>(
self
) -> Result<Vec<XReadValue<I, K, V>>, RedisError>
Available on crate feature i-streams
only.
pub fn into_xread_value<I, K, V>( self ) -> Result<Vec<XReadValue<I, K, V>>, RedisError>
i-streams
only.A utility function to convert the response from XCLAIM
, etc into a type with a less verbose type declaration.
This function supports responses in both RESP2 and RESP3 formats.
sourcepub fn into_xautoclaim_values<I, K, V>(
self
) -> Result<(String, Vec<XReadValue<I, K, V>>), RedisError>
Available on crate feature i-streams
only.
pub fn into_xautoclaim_values<I, K, V>( self ) -> Result<(String, Vec<XReadValue<I, K, V>>), RedisError>
i-streams
only.A utility function to convert the response from XAUTOCLAIM
into a type with a less verbose type declaration.
This function supports responses in both RESP2 and RESP3 formats.
Note: the new (as of Redis 7.x) return value containing message PIDs that were deleted from the PEL are dropped.
Callers should use xautoclaim
instead if this data is needed.
sourcepub fn as_functions(&self, name: &str) -> Result<Vec<Function>, RedisError>
Available on crate feature i-scripts
only.
pub fn as_functions(&self, name: &str) -> Result<Vec<Function>, RedisError>
i-scripts
only.Parse the value as the response from FUNCTION LIST
, including only functions with the provided library name
.
sourcepub fn as_geo_position(&self) -> Result<Option<GeoPosition>, RedisError>
Available on crate feature i-geo
only.
pub fn as_geo_position(&self) -> Result<Option<GeoPosition>, RedisError>
i-geo
only.Convert the value into a GeoPosition
, if possible.
Null values are returned as None
to work more easily with the result of the GEOPOS
command.
sourcepub fn into_geo_radius_result(
self,
withcoord: bool,
withdist: bool,
withhash: bool
) -> Result<Vec<GeoRadiusInfo>, RedisError>
Available on crate feature i-geo
only.
pub fn into_geo_radius_result( self, withcoord: bool, withdist: bool, withhash: bool ) -> Result<Vec<GeoRadiusInfo>, RedisError>
i-geo
only.Parse the value as the response to any of the relevant GEO commands that return an array of
GeoRadiusInfo values, such as GEOSEARCH
, GEORADIUS`, etc.
sourcepub fn take(&mut self) -> RedisValue
pub fn take(&mut self) -> RedisValue
Replace this value with RedisValue::Null
, returning the original value.
sourcepub fn convert<R>(self) -> Result<R, RedisError>where
R: FromRedis,
pub fn convert<R>(self) -> Result<R, RedisError>where
R: FromRedis,
Attempt to convert this value to any value that implements the FromRedis trait.
sourcepub fn can_hash(&self) -> bool
pub fn can_hash(&self) -> bool
Whether the value can be hashed.
Some use cases require using RedisValue
types as keys in a HashMap
, etc. Trying to do so with an aggregate
type can panic, and this function can be used to more gracefully handle this situation.
sourcepub fn into_json(self) -> Result<Value, RedisError>
Available on crate feature serde-json
only.
pub fn into_json(self) -> Result<Value, RedisError>
serde-json
only.Convert the value to JSON.
Trait Implementations§
source§impl Clone for RedisValue
impl Clone for RedisValue
source§fn clone(&self) -> RedisValue
fn clone(&self) -> RedisValue
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RedisValue
impl Debug for RedisValue
source§impl<'a> From<&'a [u8]> for RedisValue
impl<'a> From<&'a [u8]> for RedisValue
source§impl<'a> From<&'a String> for RedisValue
impl<'a> From<&'a String> for RedisValue
source§impl<'a> From<&'a str> for RedisValue
impl<'a> From<&'a str> for RedisValue
source§impl From<()> for RedisValue
impl From<()> for RedisValue
source§impl<A0: Into<RedisValue>, A1: Into<RedisValue>> From<(A0, A1)> for RedisValue
impl<A0: Into<RedisValue>, A1: Into<RedisValue>> From<(A0, A1)> for RedisValue
source§impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>> From<(A0, A1, A2)> for RedisValue
impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>> From<(A0, A1, A2)> for RedisValue
source§fn from(value: (A0, A1, A2)) -> Self
fn from(value: (A0, A1, A2)) -> Self
source§impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>> From<(A0, A1, A2, A3)> for RedisValue
impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>> From<(A0, A1, A2, A3)> for RedisValue
source§fn from(value: (A0, A1, A2, A3)) -> Self
fn from(value: (A0, A1, A2, A3)) -> Self
source§impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>> From<(A0, A1, A2, A3, A4)> for RedisValue
impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>> From<(A0, A1, A2, A3, A4)> for RedisValue
source§fn from(value: (A0, A1, A2, A3, A4)) -> Self
fn from(value: (A0, A1, A2, A3, A4)) -> Self
source§impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5)> for RedisValue
impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5)> for RedisValue
source§fn from(value: (A0, A1, A2, A3, A4, A5)) -> Self
fn from(value: (A0, A1, A2, A3, A4, A5)) -> Self
source§impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6)> for RedisValue
impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6)> for RedisValue
source§fn from(value: (A0, A1, A2, A3, A4, A5, A6)) -> Self
fn from(value: (A0, A1, A2, A3, A4, A5, A6)) -> Self
source§impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>, A7: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6, A7)> for RedisValue
impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>, A7: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6, A7)> for RedisValue
source§fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7)) -> Self
fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7)) -> Self
source§impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>, A7: Into<RedisValue>, A8: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8)> for RedisValue
impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>, A7: Into<RedisValue>, A8: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8)> for RedisValue
source§fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7, A8)) -> Self
fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7, A8)) -> Self
source§impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>, A7: Into<RedisValue>, A8: Into<RedisValue>, A9: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)> for RedisValue
impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>, A7: Into<RedisValue>, A8: Into<RedisValue>, A9: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)> for RedisValue
source§fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)) -> Self
fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)) -> Self
source§impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>, A7: Into<RedisValue>, A8: Into<RedisValue>, A9: Into<RedisValue>, A10: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)> for RedisValue
impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>, A7: Into<RedisValue>, A8: Into<RedisValue>, A9: Into<RedisValue>, A10: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)> for RedisValue
source§fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)) -> Self
fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)) -> Self
source§impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>, A7: Into<RedisValue>, A8: Into<RedisValue>, A9: Into<RedisValue>, A10: Into<RedisValue>, A11: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)> for RedisValue
impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>, A7: Into<RedisValue>, A8: Into<RedisValue>, A9: Into<RedisValue>, A10: Into<RedisValue>, A11: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)> for RedisValue
source§fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)) -> Self
fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)) -> Self
source§impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>, A7: Into<RedisValue>, A8: Into<RedisValue>, A9: Into<RedisValue>, A10: Into<RedisValue>, A11: Into<RedisValue>, A12: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)> for RedisValue
impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>, A7: Into<RedisValue>, A8: Into<RedisValue>, A9: Into<RedisValue>, A10: Into<RedisValue>, A11: Into<RedisValue>, A12: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)> for RedisValue
source§fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)) -> Self
fn from(value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)) -> Self
source§impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>, A7: Into<RedisValue>, A8: Into<RedisValue>, A9: Into<RedisValue>, A10: Into<RedisValue>, A11: Into<RedisValue>, A12: Into<RedisValue>, A13: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)> for RedisValue
impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>, A7: Into<RedisValue>, A8: Into<RedisValue>, A9: Into<RedisValue>, A10: Into<RedisValue>, A11: Into<RedisValue>, A12: Into<RedisValue>, A13: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)> for RedisValue
source§fn from(
value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)
) -> Self
fn from( value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13) ) -> Self
source§impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>, A7: Into<RedisValue>, A8: Into<RedisValue>, A9: Into<RedisValue>, A10: Into<RedisValue>, A11: Into<RedisValue>, A12: Into<RedisValue>, A13: Into<RedisValue>, A14: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)> for RedisValue
impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>, A7: Into<RedisValue>, A8: Into<RedisValue>, A9: Into<RedisValue>, A10: Into<RedisValue>, A11: Into<RedisValue>, A12: Into<RedisValue>, A13: Into<RedisValue>, A14: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)> for RedisValue
source§fn from(
value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)
) -> Self
fn from( value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14) ) -> Self
source§impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>, A7: Into<RedisValue>, A8: Into<RedisValue>, A9: Into<RedisValue>, A10: Into<RedisValue>, A11: Into<RedisValue>, A12: Into<RedisValue>, A13: Into<RedisValue>, A14: Into<RedisValue>, A15: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)> for RedisValue
impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>, A7: Into<RedisValue>, A8: Into<RedisValue>, A9: Into<RedisValue>, A10: Into<RedisValue>, A11: Into<RedisValue>, A12: Into<RedisValue>, A13: Into<RedisValue>, A14: Into<RedisValue>, A15: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)> for RedisValue
source§fn from(
value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)
) -> Self
fn from( value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15) ) -> Self
source§impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>, A7: Into<RedisValue>, A8: Into<RedisValue>, A9: Into<RedisValue>, A10: Into<RedisValue>, A11: Into<RedisValue>, A12: Into<RedisValue>, A13: Into<RedisValue>, A14: Into<RedisValue>, A15: Into<RedisValue>, A16: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16)> for RedisValue
impl<A0: Into<RedisValue>, A1: Into<RedisValue>, A2: Into<RedisValue>, A3: Into<RedisValue>, A4: Into<RedisValue>, A5: Into<RedisValue>, A6: Into<RedisValue>, A7: Into<RedisValue>, A8: Into<RedisValue>, A9: Into<RedisValue>, A10: Into<RedisValue>, A11: Into<RedisValue>, A12: Into<RedisValue>, A13: Into<RedisValue>, A14: Into<RedisValue>, A15: Into<RedisValue>, A16: Into<RedisValue>> From<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16)> for RedisValue
source§fn from(
value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16)
) -> Self
fn from( value: (A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16) ) -> Self
source§impl From<Bytes> for RedisValue
impl From<Bytes> for RedisValue
source§impl From<RedisKey> for RedisValue
impl From<RedisKey> for RedisValue
source§impl From<RedisMap> for RedisValue
impl From<RedisMap> for RedisValue
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<f32> for RedisValue
impl From<f32> for RedisValue
source§impl From<f64> for RedisValue
impl From<f64> for RedisValue
source§impl From<i16> for RedisValue
impl From<i16> for RedisValue
source§impl From<i32> for RedisValue
impl From<i32> for RedisValue
source§impl From<i64> for RedisValue
impl From<i64> for RedisValue
source§impl From<i8> for RedisValue
impl From<i8> for RedisValue
source§impl From<u16> for RedisValue
impl From<u16> for RedisValue
source§impl From<u32> for RedisValue
impl From<u32> for RedisValue
source§impl From<u8> for RedisValue
impl From<u8> for RedisValue
source§impl<V> FromIterator<V> for RedisValuewhere
V: Into<RedisValue>,
impl<V> FromIterator<V> for RedisValuewhere
V: Into<RedisValue>,
source§fn from_iter<I: IntoIterator<Item = V>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = V>>(iter: I) -> Self
source§impl FromRedis for RedisValue
impl FromRedis for RedisValue
fn from_value(value: RedisValue) -> Result<Self, RedisError>
source§impl FromRedisKey for RedisValue
impl FromRedisKey for RedisValue
source§impl Hash for RedisValue
impl Hash for RedisValue
source§impl PartialEq for RedisValue
impl PartialEq for RedisValue
source§impl<K, V> TryFrom<BTreeMap<K, V>> for RedisValuewhere
K: TryInto<RedisKey>,
K::Error: Into<RedisError>,
V: TryInto<RedisValue>,
V::Error: Into<RedisError>,
impl<K, V> TryFrom<BTreeMap<K, V>> for RedisValuewhere
K: TryInto<RedisKey>,
K::Error: Into<RedisError>,
V: TryInto<RedisValue>,
V::Error: Into<RedisError>,
source§impl TryFrom<BytesFrame> for RedisValue
impl TryFrom<BytesFrame> for RedisValue
§type Error = RedisError
type Error = RedisError
source§impl<K, V> TryFrom<HashMap<K, V>> for RedisValuewhere
K: TryInto<RedisKey>,
K::Error: Into<RedisError>,
V: TryInto<RedisValue>,
V::Error: Into<RedisError>,
impl<K, V> TryFrom<HashMap<K, V>> for RedisValuewhere
K: TryInto<RedisKey>,
K::Error: Into<RedisError>,
V: TryInto<RedisValue>,
V::Error: Into<RedisError>,
source§impl<T> TryFrom<Option<T>> for RedisValue
impl<T> TryFrom<Option<T>> for RedisValue
source§impl TryFrom<RedisValue> for ClusterInfo
impl TryFrom<RedisValue> for ClusterInfo
§type Error = RedisError
type Error = RedisError
source§impl TryFrom<RedisValue> for DatabaseMemoryStats
Available on crate feature i-memory
only.
impl TryFrom<RedisValue> for DatabaseMemoryStats
i-memory
only.§type Error = RedisError
type Error = RedisError
source§impl TryFrom<RedisValue> for GeoPosition
impl TryFrom<RedisValue> for GeoPosition
§type Error = RedisError
type Error = RedisError
source§impl TryFrom<RedisValue> for MemoryStats
Available on crate feature i-memory
only.
impl TryFrom<RedisValue> for MemoryStats
i-memory
only.