env-loader 0.3.2

Simple storage for env variables with typings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[derive(Debug)]
pub enum ConfigLoaderError {
    NoEnvFile,
    ValueNotInEnv(String),
    IncorrectValueType(&'static str),
    IsNotPartOfRuntime(&'static str),
    WrongConvertion,
    WrongTypeTryingToGet(&'static str),
    ValueValidationFail(ConstraintValidationError),
}
#[derive(Debug)]
pub enum ConstraintValidationError {
    MinConstraintViolation,
    MaxConstraintViolation,
    NotEmptyConstraintViolation,
}