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
- Host: GitHub
- URL: https://github.com/teloxide/mixed-tags-serde
- Owner: teloxide
- License: mit
- Created: 2019-10-14T20:03:51.000Z (over 6 years ago)
- Default Branch: dev
- Last Pushed: 2020-01-02T19:56:34.000Z (over 6 years ago)
- Last Synced: 2025-01-17T12:25:59.471Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.