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<String, TomlKeyPath>,
}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<String, TomlKeyPath>Map the specified environment variables into config keys.
Trait Implementations§
Auto Trait Implementations§
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