jcrist · GitHub

added 6 commits

March 1, 2022 11:27
This adds support for parsing/processing `tag` and `tag_field` options
for structs. This is only the first step for supporting tagged unions,
they're not currently used anywhere outside of the StructMeta
constructor.
Adds support for JSON & MessagePack encoders to encode tagged structs.
This implements the first half of decoding Struct unions (validating and
building the lookup table when creating a decoder). Decoding these types
is still not supported.
Supports decoding JSON & MessagePack into Unions containing multiple
tagged structs. Still needs tests.

@jcrist jcrist changed the title [WIP] Tagged Unions Tagged Unions

Mar 7, 2022

@jcrist

@jcrist

@jcrist

jcrist deleted the tagged-unions branch

March 7, 2022 17:27

@Siyet Siyet mentioned this pull request

May 6, 2026

Open

Read the original on github.com ↗