Function from_str

Source
pub fn from_str<T, U>(data: &str) -> Result<U, Error>
Expand description

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