pub fn from_str<'a, T>(s: &'a str) -> Result<T, Error>where
T: Deserialize<'a>,
Expand description
Deserialize an instance of type T
from a string of plain text.
This deserializes the string into an object with the Deserializer
and returns it. This requires that the type is a simple one
(integer, string etc.).