Skip to main content

apply_edits

Function apply_edits 

Source
pub fn apply_edits(model: &mut Model, edits: &str) -> Result<Vec<MeasureId>>
Expand description

Apply what-if edits to model’s input cells in memory and return the edited measures. edits is a JSON array of {"measure": name, "coord": {category: item}, "value": v | null}: v a number, a bool, a string, or a datetime as an RFC 3339 string, by the measure’s type (measure and category names case-insensitive; null removes the cell).