Skip to main content

Config

Derive Macro Config 

Source
#[derive(Config)]
{
    // Attributes available to this derive:
    #[configulator]
}
Expand description

Derive macro that generates ConfigFields and FromValueMap implementations for a struct.

Supports #[configulator(name = "...", default = "...", description = "...")] attributes. Falls back to field name if no name attribute is specified.

Scalar field types must implement FromStr + Default. Nested struct types must also derive Config, detection is automatic at compile time.