Struct plugx_config::loader::env::ConfigurationLoaderEnv
source · pub struct ConfigurationLoaderEnv { /* private fields */ }Expand description
Loads configurations from Environment-Variables.
Implementations§
source§impl ConfigurationLoaderEnv
impl ConfigurationLoaderEnv
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§
source§impl Clone for ConfigurationLoaderEnv
impl Clone for ConfigurationLoaderEnv
source§fn clone(&self) -> ConfigurationLoaderEnv
fn clone(&self) -> ConfigurationLoaderEnv
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl ConfigurationLoader for ConfigurationLoaderEnv
impl ConfigurationLoader for ConfigurationLoaderEnv
source§impl Debug for ConfigurationLoaderEnv
impl Debug for ConfigurationLoaderEnv
source§impl Default for ConfigurationLoaderEnv
impl Default for ConfigurationLoaderEnv
source§fn default() -> ConfigurationLoaderEnv
fn default() -> ConfigurationLoaderEnv
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ConfigurationLoaderEnv
impl Send for ConfigurationLoaderEnv
impl Sync for ConfigurationLoaderEnv
impl Unpin for ConfigurationLoaderEnv
impl UnwindSafe for ConfigurationLoaderEnv
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