/// Deserializes the bytes contained inside of this value. Returns an error
/// if this value doesn't contain bytes.
Deserializes the bytes contained inside of this value. Returns an error
if this value doesn't contain bytes.
Deserializes the bytes contained inside of this value . Returns an error if this value doesn ' t contain bytes .
pub fn deserialize<V: for<'de> Deserialize<'de>>(&self) -> Result<V, crate::Error> {
        match self {
            Value::Bytes(bytes) => Ok(pot::from_slice(bytes)?),
            Value::Numeric(_) => Err(crate::Error::Database(String::from(
                "key contains numeric value, not serialized data",
            ))),
        }
    }
pub fn deserialize < V : for < ' de > Deserialize < ' de > > ( & self ) -> Result < V , crate :: Error > { match self { Value :: Bytes ( bytes ) => Ok ( pot :: from_slice ( bytes ) ? ) , Value :: Numeric ( _ ) => Err ( crate :: Error :: Database ( String :: from ( " " , ) ) ) , } }
Deserializes the bytes contained inside of this value.
Deserializes the bytes contained inside of this value .
&self