pub struct FabricConfigSource { /* private fields */ }
Expand description
Integrate with config-rs Example: let source = FabricConfigSource::new(config); let s = config::Config::builder() .add_source(source) .build()?
Implementations§
Source§impl FabricConfigSource
impl FabricConfigSource
pub fn new(c: ConfigurationPackage) -> Self
Trait Implementations§
Source§impl Clone for FabricConfigSource
impl Clone for FabricConfigSource
Source§fn clone(&self) -> FabricConfigSource
fn clone(&self) -> FabricConfigSource
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 moreSource§impl Debug for FabricConfigSource
impl Debug for FabricConfigSource
Source§impl Source for FabricConfigSource
impl Source for FabricConfigSource
fn clone_into_box(&self) -> Box<dyn Source + Send + Sync>
Source§fn collect(&self) -> Result<Map<String, Value>, ConfigError>
fn collect(&self) -> Result<Map<String, Value>, ConfigError>
Collect all configuration properties available from this source into
a
Map
.Source§fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>
fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>
Collects all configuration properties to a provided cache.
Auto Trait Implementations§
impl Freeze for FabricConfigSource
impl RefUnwindSafe for FabricConfigSource
impl Send for FabricConfigSource
impl Sync for FabricConfigSource
impl Unpin for FabricConfigSource
impl UnwindSafe for FabricConfigSource
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