de_env
helps you easily deserialize environment variables into a struct.
Assuming we have a TIMEOUT
, HOST
and RETRY
environment variable:
```rust
struct Config { timeout: u16, host: std::net::IpAddr, retry: bool, }
let config: Config = deenv::fromenv()?;
println!("{config:#?}"); ```