serde-struct-tuple-enum 0.1.1

Procedural macro for deserializing an enum of structs from tuples.
Documentation

serde-struct-tuple-enum

Latest Version

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.