diff --git a/notify-types/src/event.rs b/notify-types/src/event.rs index 43bb07fb..8de588d2 100644 --- a/notify-types/src/event.rs +++ b/notify-types/src/event.rs @@ -307,6 +307,10 @@ pub struct Event { all(feature = "serde", not(feature = "serialization-compat-6")), serde(flatten) )] + #[cfg_attr( + all(feature = "serde", feature = "serialization-compat-6"), + serde(rename = "type") + )] pub kind: EventKind, /// Paths the event is about, if known.