Derive Macro VariantDefault

Source
#[derive(VariantDefault)]
{
    // Attributes available to this derive:
    #[variant]
    #[default]
}
Expand description

Derive no traits, but implement functions/associated constants for the type.