Trait serde_redis::IntoCow

source ·
pub trait IntoCow<'a> {
    // Required method
    fn into_cow(self) -> Cow<'a, Value>;
}
Expand description

A value that can be turned into a Cow<'a, Value>. This is primarily useful because there is not an impl Into<Cow<'a, Value>> built-in for redis::Value and &'a redis::Value. This allows from_redis_value to take either one of those.

Required Methods§

source

fn into_cow(self) -> Cow<'a, Value>

Implementations on Foreign Types§

source§

impl<'a> IntoCow<'a> for &'a Value

source§

fn into_cow(self) -> Cow<'a, Value>

source§

impl IntoCow<'static> for Value

source§

fn into_cow(self) -> Cow<'static, Value>

Implementors§