pub trait ConfigSource {
// Required methods
fn config_value(&mut self, key: &str) -> Option<String>;
fn resolve_value(&mut self, value: &str) -> Result<String>;
}Expand description
Source for config values and interpolation.
Required Methods§
Sourcefn config_value(&mut self, key: &str) -> Option<String>
fn config_value(&mut self, key: &str) -> Option<String>
Read a decoded config value by key.
Sourcefn resolve_value(&mut self, value: &str) -> Result<String>
fn resolve_value(&mut self, value: &str) -> Result<String>
Resolve interpolation patterns in a config value.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".