use deku::prelude::*; #[derive(DekuRead)] #[deku(id_type = "u8")] pub enum Body DekuReader<'a>> { #[deku(id = "0x0001")] First(T), } fn main() { let n = Body::::First(1); n.deku_id(); }