Attribute Macro doc_enum

Source
#[doc_enum]
Expand description

Sets up an enum for use in a Document. This macro does a couple of things:

  1. It derives serde’s Serialize and Deserialize traits. Make sure you have serde installed!
  2. Sets up said serialization and deserialization to work the way the editor expects.
  3. Derives ToEditorField for the schema