derive_from_env 1.0.1

Extract type safe structured data from environment variables with procedural derive macros
Documentation
1
2
3
4
5
6
use crate::FromEnvError;

pub trait FromEnv: Sized {
    fn from_env() -> Result<Self, FromEnvError>;
    fn from_env_with_prefix(prefix: &str) -> Result<Self, FromEnvError>;
}