Function from_str
fn from_str<'de, T>(s: &'de str) -> Result<T, Error>
where
T: serde::de::Deserialize<'de>
Deserializes a string into a type.
This function will attempt to interpret s as a TOML document and
deserialize T from the document.
To deserializes TOML values, instead of documents, see ValueDeserializer.
Examples
use Deserialize;
let config: Config = from_str.unwrap;
assert_eq!;
assert_eq!;