Closed iafisher closed 4 years ago
It would simplify the logic of the code greatly even if it makes (de)serialization more complicated.
I can do this using the [serde(tag = "kind")] annotation on the Question enum!
[serde(tag = "kind")]
Question
I think a Question trait is actually a better idea than an enum.
It would simplify the logic of the code greatly even if it makes (de)serialization more complicated.