logo

Derive Macro ruma_macros::AsRefStr

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

Derive the AsRef<str> trait for an enum.