Skip to main content

apply_workflow_patch

Function apply_workflow_patch 

Source
pub fn apply_workflow_patch(
    bundle: &WorkflowBundle,
    patch: &WorkflowPatch,
) -> Result<WorkflowBundle, Vec<WorkflowPatchDiagnostic>>
Expand description

Apply a patch to a copy of the bundle and return the new bundle. Fails fast on the first structural error; callers that want richer diagnostics should prefer validate_workflow_patch.