Trait redis_driver::resp::FromValue
source · [−]pub trait FromValue: Sized {
fn from_value(value: Value) -> Result<Self>;
fn next_functor<I: Iterator<Item = Value>>(
) -> Box<dyn FnMut(&mut I) -> Option<Result<Self>>> { ... }
}
Required Methods
sourcefn from_value(value: Value) -> Result<Self>
fn from_value(value: Value) -> Result<Self>
Used to do Value
to user type conversion
Errors
Any parsing error (Error::Client
) due to incompatibility between Value variant and taget type