This library automatically reads configurations from environment variables. The configuration is defined in one struct for configuration values and in one struct for secrets. The environment variables are expected to have the same name as the struct attributes in uppercase.
```` bash LOG_LEVEL=info
REDISHOST=127.0.0.1 REDISUSER=lala REDIS_PASSWORD=lili ````
```` rust pub struct Config { pub log_level: String,
pub redis_host: String,
pub redis_user: String,
timeout: u32
}
pub struct Secrets { pub redis_password: String, }
pub type CoSe = ConfigAndSecrets
fn main() { let cose = CoSe::from_env(); println!("config and secrets: {:?}", cose); } ````