Derive Macro ruma::serde::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.