ruma_macros

Derive Macro AsRefStr

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

Derive the AsRef<str> trait for an enum.