Trait cfg_rs::FromConfig[][src]

pub trait FromConfig: Sized {
    fn from_config(
        context: &mut ConfigContext<'_>,
        value: Option<ConfigValue<'_>>
    ) -> Result<Self, ConfigError>; }
Expand description

Generate config instance from configuration.

The most power of this crate is automatically deriving this trait. Please refer to Derive FromConfig for details.

Required methods

Generate config from ConfigValue under context.

Implementations on Foreign Types

Implementors