DotEnvParser

Trait DotEnvParser 

Source
pub trait DotEnvParser: DotEnvParserConfig {
    // Provided method
    fn process_dotenv_files(self) -> Result<Self> { ... }
}
Expand description

blanket implementation for automatic dotenv processing

Refer to DotEnvParserConfig for configuration options.

Provided Methods§

Source

fn process_dotenv_files(self) -> Result<Self>

process dotenv files and populate variables into the environment

This will run automatically at startup.

Order Matters!

§Errors

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§