An open API service indexing awesome lists of open source software.

https://github.com/teloxide/mixed-tags-serde

A hack mixing `untagged` and `externally tagged` variants at the same enum
https://github.com/teloxide/mixed-tags-serde

Last synced: about 2 months ago
JSON representation

A hack mixing `untagged` and `externally tagged` variants at the same enum

Awesome Lists containing this project

README

          

# mixed-tags-serde
A hack mixing `untagged` and `externally tagged` variants at the same enum.

See [tests](/src/lib.rs#L31-L135) for examples.

Also see [issue on serde](https://github.com/serde-rs/serde/issues/1646) about impelemting this feature native.