pub fn from_slice<T>(s: &[u8]) -> Result<T, Error>where T: DeserializeOwned,
Convert a value into T.
T