| Crates.io | serde-struct-tuple-enum |
| lib.rs | serde-struct-tuple-enum |
| version | 0.1.1 |
| created_at | 2025-01-01 19:46:41.034475+00 |
| updated_at | 2025-01-19 22:16:58.485994+00 |
| description | Procedural macro for deserializing an enum of structs from tuples. |
| homepage | |
| repository | https://github.com/jackson-nestelroad/battler/tree/main/battler-wamp/serde-struct-tuple-enum |
| max_upload_size | |
| id | 1501036 |
| size | 9,969 |
serde-struct-tuple-enum is a utility crate, built initially for battler-wamp. It provides procedural macros to automatically derive serde's Serialize and Deserialize traits for enum types, where each variant of the enum is a struct that is encoded as a tuple of its fields (specifically using serde-struct-tuple).
battler-wamp uses this macro for all WAMP messages, since WAMP messages are encoded as a list, where the first element determines the message variant.