pub fn from_slice<T, U>(data: &[u8]) -> Result<U, Error>where
T: PrimaryData,
U: DeserializeOwned,Expand description
Deserialize a Document<T> from bytes of JSON text and then iterpret it as
a type U.
pub fn from_slice<T, U>(data: &[u8]) -> Result<U, Error>where
T: PrimaryData,
U: DeserializeOwned,Deserialize a Document<T> from bytes of JSON text and then iterpret it as
a type U.