Skip to main content

Configuration

Derive Macro Configuration 

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

Derives an explicit typed view over an already loaded configuration.

Named structs support #[config(prefix = "...")] and field-level rename, literal default, parse_with, and compatible validate attributes.