RFC 2363 allows to set custom discriminant on arbitrary enums with payloads, and not just C-like enums.
While it's currently a nightly-only feature It's a stable feature since Rust 1.56, it would be great to support arbitrary enums in serde-repr too.
RFC 2363 allows to set custom discriminant on arbitrary enums with payloads, and not just C-like enums.
While it's currently a nightly-only featureIt's a stable feature since Rust 1.56, it would be great to support arbitrary enums in serde-repr too.