#[derive(Pack)]
{
// Attributes available to this derive:
#[senax]
}
Expand description
Derive macro for implementing the Pack trait (Packer only)
This procedural macro automatically generates an implementation of the Packer trait
for structs and enums. It provides compact serialization without field IDs for structs.
§Supported Attributes
§Container-level attributes:
#[senax(disable_pack)]- Generate stub implementation (unimplemented!() only) for Pack/Unpack
§Examples
#[derive(Pack)]
struct MyStruct {
field1: i32,
field2: String,
}
// Stub implementation for faster compilation during development
#[derive(Pack, Unpack)]
#[senax(disable_pack)]
struct UnfinishedStruct {
field1: i32,
}