Derive Macro ruma_common::serde::AsRefStr

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

Derive the AsRef<str> trait for an enum.