pub fn add_binding_json(
root: &Path,
mem: &str,
name: &str,
patch_json: &str,
) -> Result<Binding, PipelineEditError>Expand description
Create a binding from a JSON BindingPatch applied to the default
scaffold. Refuses when (mem, name) already holds a record
(PipelineEditError::AlreadyExists), when the patch leaves
destination_mem empty (PipelineEditError::InvalidJson), or when
the candidate fails in-record validation
(PipelineEditError::Capability — every refusal blocks; a fresh
record has no pre-existing state to grandfather). Returns the written
record.