Derive Macro ruma_macros::FromString
source · [−]#[derive(FromString)]
{
// Attributes available to this derive:
#[ruma_enum]
}
Expand description
Derive the From<T: AsRef<str> + Into<Box<str>>>
trait for an enum.
#[derive(FromString)]
{
// Attributes available to this derive:
#[ruma_enum]
}
Derive the From<T: AsRef<str> + Into<Box<str>>>
trait for an enum.