Function from_slice

Source
pub fn from_slice<T, U>(data: &[u8]) -> Result<U, Error>
Expand description

Deserialize a Document<T> from bytes of JSON text and then iterpret it as a type U.