Derive Macro ruma_common::serde::StringEnum

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

Shorthand for the derives AsRefStr, FromString, DisplayAsRefStr, DebugAsRefStr, SerializeAsRefStr and DeserializeFromCowStr.