Skip to main content

define_enum_from_json

Macro define_enum_from_json 

Source
macro_rules! define_enum_from_json {
    ($kind:ident, display_name: $name:literal, warning_id: $warning:literal) => { ... };
}
Expand description

This macro defines the FromJson impl for the given enum.

Note: The IntoEnum should already be defined for the enum.