Function biodivine_sketchbook::sketchbook::event_utils::mk_obs_state_change
source · pub(crate) fn mk_obs_state_change<'a, T: JsonSerde<'a>>(
at_path: &[&str],
payload: &T,
) -> Event
Expand description
Prepare “state-change” event for the observations
component of the sketch
, given
at_path
- a path suffix used at the observations level, and potential payload.
Payload can be any struct that implements JsonSerde
.