pub struct ConfigStore { /* private fields */ }Implementations§
Source§impl ConfigStore
impl ConfigStore
pub async fn new( path: impl AsRef<Path>, cli_overrides: Option<Value>, ) -> Result<Self>
pub async fn get(&self) -> AppConfig
pub async fn get_effective_value(&self) -> Value
pub async fn get_project_value(&self) -> Value
pub async fn get_global_value(&self) -> Value
pub async fn get_layers_value(&self) -> Value
pub async fn set(&self, config: AppConfig) -> Result<()>
pub async fn patch_project(&self, patch: Value) -> Result<Value>
pub async fn patch_global(&self, patch: Value) -> Result<Value>
pub async fn patch_runtime(&self, patch: Value) -> Result<Value>
pub async fn replace_project_value(&self, value: Value) -> Result<Value>
pub async fn delete_runtime_provider_key( &self, provider_id: &str, ) -> Result<Value>
Trait Implementations§
Source§impl Clone for ConfigStore
impl Clone for ConfigStore
Source§fn clone(&self) -> ConfigStore
fn clone(&self) -> ConfigStore
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ConfigStore
impl !RefUnwindSafe for ConfigStore
impl Send for ConfigStore
impl Sync for ConfigStore
impl Unpin for ConfigStore
impl UnsafeUnpin for ConfigStore
impl !UnwindSafe for ConfigStore
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