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§
type Partial: PartialConfig
Required Methods§
Sourcefn from_partial(partial: Self::Partial) -> Self
fn from_partial(partial: Self::Partial) -> Self
Convert a partial configuration into a full configuration, with all values populated.
Provided Methods§
Sourcefn settings() -> ConfigSettingMap
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.