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§
Sourcefn process_dotenv_files(self) -> Result<Self>
fn process_dotenv_files(self) -> Result<Self>
process dotenv files and populate variables into the environment
This will run automatically at startup.
§Errors
- failure processing an
DotEnvParserConfig::additional_dotenv_filessupplied file
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.