Function json_api::from_str [] [src]

pub fn from_str<T, U>(data: &str) -> Result<U, Error> where
    T: PrimaryData,
    U: DeserializeOwned

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