pub fn from_str<T, U>(data: &str) -> Result<U, Error>where
T: PrimaryData,
U: DeserializeOwned,
Expand description
Deserialize a Document<T>
from a string of JSON text and then iterpret it
as a type U
.
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
.