pub fn set_path(
root: &mut Value,
path: &str,
value: &Value,
keyed_lists: &[KeyedList<'_>],
) -> DocumentResult<()>Expand description
Set a value at the given dot-path. value is inserted as-is at the leaf —
no coercion happens here; callers that accept CLI strings (e.g. the
afdata binary) construct the typed Value first, via
crate::document::coerce::value_from_type (an explicit --value-type)
or a bare Value::String (zero coercion — see cli-shell-config-todo.md
§3), before calling this.