pub struct Env { /* private fields */ }Expand description
Loads configurations from Environment-Variables.
Implementations§
Source§impl Env
impl Env
Sourcepub fn set_prefix<P: AsRef<str>>(&mut self, prefix: P)
pub fn set_prefix<P: AsRef<str>>(&mut self, prefix: P)
Only loads keys with this prefix.
Sourcepub fn with_prefix<P: AsRef<str>>(self, prefix: P) -> Self
pub fn with_prefix<P: AsRef<str>>(self, prefix: P) -> Self
Only loads keys with this prefix.
Sourcepub fn set_separator<S: AsRef<str>>(&mut self, separator: S)
pub fn set_separator<S: AsRef<str>>(&mut self, separator: S)
Used is separating plugin names.
Sourcepub fn with_separator<S: AsRef<str>>(self, separator: S) -> Self
pub fn with_separator<S: AsRef<str>>(self, separator: S) -> Self
Used is separating plugin names.
Sourcepub fn set_strip_prefix(&mut self, strip_prefix: bool)
pub fn set_strip_prefix(&mut self, strip_prefix: bool)
Used is separating plugin names.
Sourcepub fn with_strip_prefix(self, strip_prefix: bool) -> Self
pub fn with_strip_prefix(self, strip_prefix: bool) -> Self
Used is separating plugin names.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Env
impl RefUnwindSafe for Env
impl Send for Env
impl Sync for Env
impl Unpin for Env
impl UnwindSafe for Env
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