Skip to main content

declare_settings

Function declare_settings 

Source
pub fn declare_settings(
    decl: SettingsDecl,
    templates: &[Template],
) -> Result<SettingsDecl, SettingsError>
Expand description

Returns decl, the settings declaration of a feature that contributes the compose templates templates, declaring the settings of each one that has a schema (Template::settings) as the entry template_config.OUTPUT.NAME of the feature compose (declare_template_settings).

§Errors

A SettingsError of the kind SettingsErrorKind::InvalidDeclaration for two compose templates with a schema, of one output and one name, at the path compose.template_config.OUTPUT.NAME; and the SettingsError of a schema whose marks are faulty, as SettingsDecl::entry_data states.