pub fn from_bytes<T>(bytes: impl AsRef<[u8]>) -> Result<T, Error>where T: Deserialize,
Deserialize bytes to a value of type T.
T