pub fn payload_data<P: Serialize>(payload: &P) -> Option<Value>Expand description
An event’s data: its payload as JSON, or none for an event that carries none ((), a
pure “something changed” signal), so such an event goes out with no data field at all.