Config

Trait Config 

Source
pub trait Config: Sized + Schematic {
    type Partial: PartialConfig;

    // Required method
    fn from_partial(partial: Self::Partial) -> Self;

    // Provided method
    fn settings() -> ConfigSettingMap { ... }
}
Expand description

Represents the final configuration, with all settings populated with a value.

Required Associated Types§

Required Methods§

Source

fn from_partial(partial: Self::Partial) -> Self

Convert a partial configuration into a full configuration, with all values populated.

Provided Methods§

Source

fn settings() -> ConfigSettingMap

Return a map of all settings and their metadata for the configuration.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§