Trait config::ConfigurationSection
source · pub trait ConfigurationSection: Configuration + AsRef<dyn Configuration> + Borrow<dyn Configuration> + Deref<Target = dyn Configuration> {
// Required methods
fn key(&self) -> &str;
fn path(&self) -> &str;
fn value(&self) -> Value;
fn as_config(&self) -> Box<dyn Configuration>;
}Expand description
Defines the behavior for a section of application configuration values.
Required Methods§
sourcefn path(&self) -> &str
fn path(&self) -> &str
Gets the full path to this section within the Configuration.
sourcefn as_config(&self) -> Box<dyn Configuration>
fn as_config(&self) -> Box<dyn Configuration>
Converts the ConfigurationSection into a Configuration.