pub enum Value {
SimpleString(String),
Integer(i64),
Double(f64),
BulkString(Option<Vec<u8>>),
Array(Option<Vec<Value>>),
Push(Option<Vec<Value>>),
Error(RedisError),
}
Variants§
SimpleString(String)
Integer(i64)
Double(f64)
BulkString(Option<Vec<u8>>)
Array(Option<Vec<Value>>)
Push(Option<Vec<Value>>)
Error(RedisError)
Implementations§
Source§impl Value
impl Value
Sourcepub fn into<T>(self) -> Result<T>where
T: FromValue,
pub fn into<T>(self) -> Result<T>where
T: FromValue,
A Value
to user type conversion that consumes the input value.
§Errors
Any parsing error (Error::Client
) due to incompatibility between Value variant and taget type
pub fn into_with_command<T>(self, command: &Command) -> Result<T>where
T: FromValue,
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more