Trait 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§

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.

Source

fn as_config(&self) -> Box<dyn Configuration>

Converts the ConfigurationSection into a Configuration.

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§