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

Prepare “state-change” event for the model component of the sketch, given at_path - a path suffix used at the model level, and potential payload. Payload can be any struct that implements JsonSerde.