pub struct Args<'a> {
pub dotenv_path: &'a Path,
pub config_path: Option<&'a Path>,
pub config_variable_name: &'a str,
pub logging: Logging,
pub map_env: HashMap<&'a str, TomlKeyPath>,
pub auto_map_env: Option<AutoMapEnvArgs<'a>>,
}Expand description
Args as input to initialize().
Fields§
§dotenv_path: &'a PathPath to .env.toml format file. The value is DEFAULT_DOTENV_PATH by default.
config_path: Option<&'a Path>Path to a config file to load.
config_variable_name: &'a strName of the environment variable to use that stores the config. The value is DEFAULT_CONFIG_VARIABLE_NAME by default.
logging: LoggingWhat method of logging to use (if any). Logging::None by default.
map_env: HashMap<&'a str, TomlKeyPath>Map the specified environment variables into config keys.
auto_map_env: Option<AutoMapEnvArgs<'a>>See AutoMapEnvArgs.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Args<'a>
impl<'a> !RefUnwindSafe for Args<'a>
impl<'a> !Send for Args<'a>
impl<'a> !Sync for Args<'a>
impl<'a> Unpin for Args<'a>
impl<'a> !UnwindSafe for Args<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more