pub struct Options {
pub prefix: String,
pub origin: Option<String>,
}Expand description
How variable names become config paths.
Fields§
§prefix: StringSelects which variables to mount, and is stripped from the path.
Required by load: mounting the whole environment would pull in
PATH, HOME and whatever secrets happen to be set (spec F1.1).
parse_dotenv allows it to be empty, a .env file being a closed
set the caller chose deliberately.
origin: Option<String>Source name for error messages.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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