use serde::Deserialize; #[derive(Deserialize)] struct Config { size: Option, } fn main() { match envy::from_env::() { Ok(config) => println!("provided config.size {:?}", config.size), Err(err) => println!("error parsing config from env: {}", err), } }