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