Expand description
§npsd Derive Macros
This module provides a set of custom derive macros to simplify the implementation of traits required by the npsd framework.
These macros automate the generation of boilerplate code for various payload processing tasks, including serialization, deserialization, and payload conversion.
§Available Macros
§#[derive(Info)]
Generates an implementation of the PayloadInfo trait, which provides metadata about the payload type.
§#[derive(Schema)]
Generates implementations for payload processing traits such as IntoPayload, FromPayload, and Payload for public use.
§#[derive(Bitmap)]
Generates implementations for payload processing traits for bitmap structures with up to 8 fields.
§#[derive(AsyncSchema)]
Generates asynchronous implementations for payload processing traits such as AsyncIntoPayload, AsyncFromPayload, and AsyncPayload for public use.
§#[derive(AsyncBitmap)]
Generates asynchronous implementations for payload processing traits for bitmap structures with up to 8 fields.