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;
}
Expand description

Defines the behavior for a section of application configuration values.

Required Methods§

source

fn key(&self) -> &str

Gets the key this section occupies in its parent.

source

fn path(&self) -> &str

Gets the full path to this section within the Configuration.

source

fn value(&self) -> Value

Gets the section value.

Trait Implementations§

source§

impl ConfigurationSectionExtensions for dyn ConfigurationSection

source§

fn exists(&self) -> bool

Gets a value indicating whether the configuration section exists. Read more

Implementors§