pub struct Dotenv {
pub files: Vec<PathBuf>,
pub values: BTreeMap<String, String>,
}Expand description
The .env files read for this profile, and what they set.
Read order is shared .env then the profile’s, so a profile overrides the shared file
key by key. The real process environment still beats both: a .env is a fallback for
what the shell did not set, never an override of it — otherwise exporting a variable to
test something would appear not to work.
Only the file names are ever printed (config show); values are secrets by
assumption, since that is what this file is for.
Fields§
§files: Vec<PathBuf>Files that existed and were read, in read order.
values: BTreeMap<String, String>Implementations§
Trait Implementations§
impl Eq for Dotenv
impl StructuralPartialEq for Dotenv
Auto Trait Implementations§
impl Forget for Dotenv
impl Freeze for Dotenv
impl Move for Dotenv
impl RefUnwindSafe for Dotenv
impl Send for Dotenv
impl Sync for Dotenv
impl Unpin for Dotenv
impl UnsafeUnpin for Dotenvwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
impl UnwindSafe for Dotenv
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.