JsonToFromZMQ

Derive Macro JsonToFromZMQ 

Source
#[derive(JsonToFromZMQ)]
Expand description

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

  • JsonSerializeDeserialize: Allows the type to be serialized to and deserialized from JSON format.
  • Into<zmq::Message>: Provides a method to convert the type into a zmq::Message.
  • TryFrom<zmq::Message>: Allows creating an instance of the type from a zmq::Message.