use bytezy::Packet; #[derive(Packet)] #[bytezy(bytes = 0x10)] struct TestPacket { header: u8, } #[derive(Packet)] enum TestEnum { #[bytezy(tag = 0x00)] Variant1, #[bytezy(tag = 0x01)] Variant2, #[bytezy(tag = 0x02)] Variant3, } fn main() { let _packet = TestPacket { header: 0 }; }