I noticed this while working on #120.
Required Elements with a default value are not Option<T> in their structs, but just T. We should still avoid serializing them if they're the default Element value. Since we can't use gen_opt etc., there should probably be a new helper function for this.
I noticed this while working on #120.
Required Elements with a default value are not
Option<T>in their structs, but justT. We should still avoid serializing them if they're the default Element value. Since we can't usegen_optetc., there should probably be a new helper function for this.