Skip to content

Don't serialize Elements that have their default value #121

Description

@FreezyLemon

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions