pub struct ConfigRepository { /* private fields */ }Implementations§
Source§impl ConfigRepository
impl ConfigRepository
pub fn new() -> Self
pub fn with_values(values: BTreeMap<String, ConfigValue>) -> Self
pub fn env(&self, key: &str, default: impl Into<ConfigValue>) -> ConfigValue
Trait Implementations§
Source§impl Config for ConfigRepository
impl Config for ConfigRepository
fn get(&self, key: &str) -> Option<ConfigValue>
fn set(&mut self, key: &str, value: ConfigValue) -> Result<(), FoundationError>
Source§impl Debug for ConfigRepository
impl Debug for ConfigRepository
Source§impl Default for ConfigRepository
impl Default for ConfigRepository
Source§fn default() -> ConfigRepository
fn default() -> ConfigRepository
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigRepository
impl RefUnwindSafe for ConfigRepository
impl Send for ConfigRepository
impl Sync for ConfigRepository
impl Unpin for ConfigRepository
impl UnsafeUnpin for ConfigRepository
impl UnwindSafe for ConfigRepository
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