pub fn splice_model(
body: &[u8],
replacement: Option<&str>,
) -> Result<(Vec<u8>, String), SpliceError>Expand description
Extract the top-level model string and, when replacement is
Some, rewrite it in place. Returns the (possibly new) body and
the extracted model. Nested "model" keys are never touched: only
a string key at brace depth 1 counts.