pub(crate) fn make_state_change<'a, T>(path: &[&str], payload: &T) -> Event
where T: JsonSerde<'a>,
Expand description

Shorthand to create a “state-change” event given a path and potential payload. Payload can be any struct that implements JsonSerde.