pub fn from_bytes<'a, T>(bytes: &'a [u8]) -> Result<T, Error>
where T: Deserialize<'a>,