from_filename

Function from_filename 

Source
pub fn from_filename<P: AsRef<Path>>(filename: P) -> Result<PathBuf>
Expand description

Loads the specified file from the environment’s current directory or its parents in sequence.

§Examples

use dotenv_flow;
dotenv_flow::from_filename("custom.env").ok();

It is also possible to do the following, but it is equivalent to using dotenv_flow::dotenv(), which is preferred.

use dotenv_flow;
dotenv_flow::from_filename(".env").ok();