pub struct TransformConfig {
pub input_from: Vec<String>,
pub transform_fn: TransformFn,
pub async_fn: Option<AsyncTransformFn>,
pub script: Option<String>,
}Expand description
Configuration for a Transform node (pure function, async function, or external script).
Execution priority: script > async_fn > transform_fn.
Fields§
§input_from: Vec<String>IDs of upstream nodes whose output is used as input.
transform_fn: TransformFnThe sync transform function (lowest priority fallback).
async_fn: Option<AsyncTransformFn>Optional async transform function.
script: Option<String>Optional external script path. When set, the runtime spawns the script as a subprocess, pipes input JSON via stdin, and captures output JSON from stdout. Supports: .mjs, .js (node), .py (python3), .sh (bash).
Trait Implementations§
Source§impl Clone for TransformConfig
impl Clone for TransformConfig
Source§fn clone(&self) -> TransformConfig
fn clone(&self) -> TransformConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TransformConfig
impl !RefUnwindSafe for TransformConfig
impl Send for TransformConfig
impl Sync for TransformConfig
impl Unpin for TransformConfig
impl UnsafeUnpin for TransformConfig
impl !UnwindSafe for TransformConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more