1 2 3 4 5 6 7 8 9 10 11 12
//! Compile-fail: #[derive(EventPayload)] on an enum (only named-field structs allowed). use batpak::EventPayload; #[derive(serde::Serialize, serde::Deserialize, EventPayload)] #[batpak(category = 1, type_id = 1)] enum NotAStruct { A, B, } fn main() {}