Skip to main content

eval_transform

Function eval_transform 

Source
pub async fn eval_transform(
    transform: &EdgeTransform,
    inputs: Vec<Value>,
    registry: &TransformRegistry,
) -> Result<Value, EngineError>
Expand description

Evaluate an EdgeTransform against a list of input values.

  • PassThrough — returns the first input value, or Value::Null if empty.
  • Named(name) — looks up name in registry, calls it, and awaits the result.
  • Inline(f) — calls f synchronously (sync closure, no await).
  • Script(code) — evaluates code via the embedded Rhai engine. The script receives the inputs as an inputs array variable and must return a value.