Skip to main content

Configurable

Derive Macro Configurable 

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

Generate the partial counterpart of a configuration struct.

A field with no default is required, one with #[config(default = expr)] falls back to that expression, and a bare #[config(default)] falls back to the field type’s own [Default].