1 2 3 4 5 6 7 8 9 10 11 12 13 14
use alloc::vec::Vec; #[derive(Debug)] pub struct EventReport { pub counter: u8, pub code: u8, pub payload: Option<Vec<u8>>, } #[derive(Debug)] pub struct ActionReport { pub code: u16, pub payload: Vec<u8>, }