Skip to main content

IntoRedisValue

Trait IntoRedisValue 

Source
pub trait IntoRedisValue {
    // Required method
    fn into_redis_value(self) -> Value;
}
Expand description

Helper trait for converting test values into a redis::Value returned from a MockRedisConnection. This is necessary because neither redis::types::ToRedisArgs nor redis::types::FromRedisValue performs the precise conversion needed.

Required Methods§

Source

fn into_redis_value(self) -> Value

Convert a value into redis::Value.

Implementations on Foreign Types§

Source§

impl IntoRedisValue for &str

Source§

impl IntoRedisValue for Value

Source§

impl IntoRedisValue for bool

Source§

impl IntoRedisValue for f32

Source§

impl IntoRedisValue for f64

Source§

impl IntoRedisValue for i8

Source§

impl IntoRedisValue for i16

Source§

impl IntoRedisValue for i32

Source§

impl IntoRedisValue for i64

Source§

impl IntoRedisValue for u8

Source§

impl IntoRedisValue for u16

Source§

impl IntoRedisValue for u32

Source§

impl IntoRedisValue for String

Source§

impl IntoRedisValue for Vec<(Value, Value)>

Source§

impl IntoRedisValue for Vec<Value>

Source§

impl IntoRedisValue for Vec<u8>

Source§

impl IntoRedisValue for ServerError

Source§

impl<K, V> IntoRedisValue for HashMap<K, V>

Source§

impl<V> IntoRedisValue for HashSet<V>
where V: IntoRedisValue,

Implementors§