Function json_api::from_slice
[−]
[src]
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
.