pub struct Builder { /* private fields */ }
Implementations§
Source§impl 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 Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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