Function toml::de::from_str [] [src]

pub fn from_str<T>(s: &str) -> Result<T, Error> where T: Deserialize

Deserializes a string into a type.

This function will attempt to interpret s as a TOML document and deserialize T from the document.