Skip to main content

check_feature_enabled

Function check_feature_enabled 

Source
pub fn check_feature_enabled(
    field: impl Into<String>,
    feature: impl Into<String>,
    enabled: bool,
) -> ConfigResult<()>
Expand description

Checks that a field’s feature is enabled.

§Errors

Returns ConfigError::FeatureDisabled when enabled is false.