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_key_separator<K: AsRef<str>>(&mut self, key_separator: K)
pub fn set_key_separator<K: AsRef<str>>(&mut self, key_separator: K)
Used is separating plugin names.
sourcepub fn with_key_separator<K: AsRef<str>>(self, key_separator: K) -> Self
pub fn with_key_separator<K: AsRef<str>>(self, key_separator: K) -> Self
Used is separating plugin names.
pub fn set_modifier(&mut self, modifier: BoxedLoaderModifierFn)
pub fn with_modifier(self, modifier: BoxedLoaderModifierFn) -> Self
Trait Implementations§
source§impl ConfigurationLoader for ConfigurationLoaderEnv
impl ConfigurationLoader for ConfigurationLoaderEnv
source§fn scheme_list(&self) -> Vec<String>
fn scheme_list(&self) -> Vec<String>
In this case ["env"].
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