ByteArrayToFromZMQ

Derive Macro ByteArrayToFromZMQ 

Source
#[derive(ByteArrayToFromZMQ)]
Expand description

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

  • ByteArraySerializeDeserialize: 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.