pub struct Args<'a, M = HashMap<&'a str, TomlKeyPath>> {
pub dotenv_path: &'a Path,
pub config_path: Option<&'a Path>,
pub config_variable_name: &'a str,
pub logging: Logging,
pub map_env: M,
}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: MMap the specified environment variables into config keys.
Trait Implementations§
Auto Trait Implementations§
impl<'a, M> RefUnwindSafe for Args<'a, M>where M: RefUnwindSafe,
impl<'a, M> Send for Args<'a, M>where M: Send,
impl<'a, M> Sync for Args<'a, M>where M: Sync,
impl<'a, M> Unpin for Args<'a, M>where M: Unpin,
impl<'a, M> UnwindSafe for Args<'a, M>where M: UnwindSafe,
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