pub fn apply_result_path(
input: &Value,
result: &Value,
path: Option<&str>,
) -> Result<Value, StatesError>Expand description
Apply ResultPath to merge a state’s result into the input.
NoneorSome("$")-> result replaces input entirelySome("null")-> discard result, return original inputSome("$.foo")-> set result at that path within input
A path that walks into a value that can’t hold its next step ($.a.b with
a: 1) fails with States.ReferencePathConflict, as recorded.