Crate glue_derive

Crate glue_derive 

Source
Expand description

This entire crate is literally just for these two macros but represents so much pain and suffering.

On the user-side there’s nothing here you need to worry about here other than:

#[derive(JsonToFromZMQ, …)] pub struct FormMsg { …, }

Derive Macros§

ByteArrayToFromZMQ
A macro to automatically implement the ByteArraySerializeDeserialize trait and related conversions for specified message types. This macro generates implementations for the following traits:
JsonToFromZMQ
A macro to automatically implement the JsonSerializeDeserialize trait and related conversions for specified message types. This macro generates implementations for the following traits: