pub fn from_str<T>(input: &str) -> Result<T, Error>where
T: DeserializeOwned,Expand description
Deserialize environment variables from a string into an instance of type T.
§Example
use serde_envfile::{from_str, Value, Error};
let env = "HELLO=world";
let value = from_str::<Value>(env).expect("Failed to deserialize from string");
println!("{:?}", value);