pub struct DotenvConfig {
pub enabled: bool,
pub path: String,
pub override_env: bool,
pub extra_files: Vec<String>,
}Expand description
Configuration for dotenv loading
Fields§
§enabled: boolWhether dotenv is enabled (default: true)
path: StringPath to .env file relative to project root (default: “.env”)
override_env: boolWhether to override existing environment variables (default: false)
extra_files: Vec<String>Additional .env files to load (e.g., “.env.local”, “.env.development”)
Implementations§
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
Auto Trait Implementations§
impl Freeze for DotenvConfig
impl RefUnwindSafe for DotenvConfig
impl Send for DotenvConfig
impl Sync for DotenvConfig
impl Unpin 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