pub trait ConfigurationSection: Sized + DeserializeOwned {
const PATH: Option<&'static str> = None;
// Provided methods
fn validate(&self, _figment: &Figment) -> Result<(), FigmentError> { ... }
fn extract(figment: &Figment) -> Result<Self, FigmentError> { ... }
}
Expand description
Trait implemented by all configuration section to help loading specific part of the config and generate the sample config.
Provided Associated Constants§
Provided Methods§
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.