pub struct Builder { /* private fields */ }
Implementations
sourceimpl Builder
impl Builder
sourcepub const fn no_unset(self, no_unset: bool) -> Self
pub const fn no_unset(self, no_unset: bool) -> Self
With this flag set, missing variables without any default value will cause an error instead of omitting en empty string. Off by default.
sourcepub fn with_env_vars(self) -> Self
pub fn with_env_vars(self) -> Self
Adds all environment variables as named variables.
sourcepub fn with_named_vars(self, vars: HashMap<String, String>) -> Self
pub fn with_named_vars(self, vars: HashMap<String, String>) -> Self
Adds the given map values as named variables.
sourcepub fn with_positional_vars(self, vars: Vec<String>) -> Self
pub fn with_positional_vars(self, vars: Vec<String>) -> Self
Adds the given strings as positional variables.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more