pub enum DotenvConfig {
Disabled,
Default,
Path(PathBuf),
}Expand description
Controls whether a .env file is loaded before environment variable resolution.
- Absent or
false: do not load any.envfile. true: load.envfrom the current working directory (silently ignored if absent)."./path/to/.env": load from the given path (error if the file does not exist).
Variants§
Disabled
Do not load a .env file.
Default
Load .env from the current working directory.
Path(PathBuf)
Load from the specified path.
Trait Implementations§
Source§impl Clone for DotenvConfig
impl Clone for DotenvConfig
Source§fn clone(&self) -> DotenvConfig
fn clone(&self) -> DotenvConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DotenvConfig
impl Debug for DotenvConfig
Source§impl Default for DotenvConfig
impl Default for DotenvConfig
Source§fn default() -> DotenvConfig
fn default() -> DotenvConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DotenvConfig
impl<'de> Deserialize<'de> for DotenvConfig
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DotenvConfig
impl RefUnwindSafe for DotenvConfig
impl Send for DotenvConfig
impl Sync for DotenvConfig
impl Unpin for DotenvConfig
impl UnsafeUnpin for DotenvConfig
impl UnwindSafe for DotenvConfig
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