Function require_serde
fn require_serde(declaration: &ItemEnum, tag: &str) -> Result<(), Error>Expand description
Requires the enum to be internally tagged on tag, and kebab-cased.
The generator derives every wire name from these two attributes. If they change, the derived names would be wrong in a way no reader could detect, so the run stops instead.