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 i64

Source§

impl IntoRedisValue for String

Source§

impl IntoRedisValue for Vec<u8>

Implementors§