ruma_macros

Derive Macro AsStrAsRefStr

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

Derive the as_str() method using the AsRef<str> implementation of the type.