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