pub struct EnvFile {
pub vars: HashMap<String, String>,
pub source: Option<String>,
}Expand description
The result of parsing a .env file or string.
vars is the field accessed by every command and converter in the
codebase. The field name is identical to both the old and new parser,
so no call sites need updating.
Fields§
§vars: HashMap<String, String>Parsed key-value pairs, in insertion order within the underlying
HashMap. Use an IndexMap if deterministic ordering is needed.
source: Option<String>The file path this was parsed from, or None when parsed from a string.
Changed from String (old) to Option<String> (new) — callers that
only access env_file.vars are unaffected.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnvFile
impl RefUnwindSafe for EnvFile
impl Send for EnvFile
impl Sync for EnvFile
impl Unpin for EnvFile
impl UnsafeUnpin for EnvFile
impl UnwindSafe for EnvFile
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