Derive Macro VariantStore

Source
#[derive(VariantStore)]
{
    // Attributes available to this derive:
    #[VariantStore]
    #[VariantMap]
    #[VariantStruct]
    #[key_name]
}
Expand description

The only derive macro of this crate

Apply it on an enum to automatically generate an enum of keys and a map to store the variants

ยงArguments

See [attrs::BaseAttr]

See other attributes in [attrs]