pub fn from_bytes<'de, T>(bytes: &'de [u8]) -> Result<T, Error>where
T: Deserialize<'de>,Expand description
The function to deserialize (serialized) bytes back into data. T must implement the Deserialize trait
from the serde library. bytes is the data to be deserialized. It returns a Result with the deserialized
data or an error.