Convert a `StepOutcome` into a Python dict.
(py: Python<'_>, outcome: &RustStepOutcome)
| 3468 | |
| 3469 | /// Convert a `StepOutcome` into a Python dict. |
| 3470 | fn step_outcome_to_py(py: Python<'_>, outcome: &RustStepOutcome) -> PyResult<PyObject> { |
| 3471 | let json = serde_json::to_string(outcome) |
| 3472 | .map_err(|e| PyRuntimeError::new_err(format!("serialize outcome: {e}")))?; |
| 3473 | json_string_to_py(py, &json) |
| 3474 | } |
| 3475 | |
| 3476 | /// Bridges a Python pipeline-stage callable into a synchronous `PipelineStage`. |
| 3477 | /// |