pub struct FlowModule {Show 18 fields
pub id: String,
pub value: Box<FlowModuleValue>,
pub stop_after_if: Option<Box<StopAfterIf>>,
pub stop_after_all_iters_if: Option<Box<StopAfterIf>>,
pub skip_if: Option<Box<FlowModuleSkipIf>>,
pub sleep: Option<Box<InputTransform>>,
pub cache_ttl: Option<f64>,
pub cache_ignore_s3_path: Option<bool>,
pub timeout: Option<Box<InputTransform>>,
pub delete_after_secs: Option<i32>,
pub summary: Option<String>,
pub mock: Option<Box<FlowModuleMock>>,
pub suspend: Option<Box<FlowModuleSuspend>>,
pub priority: Option<f64>,
pub continue_on_error: Option<bool>,
pub job_token_scopes: Option<Option<Vec<String>>>,
pub retry: Option<Box<Retry>>,
pub debouncing: Option<Box<FlowModuleDebouncing>>,
}Expand description
FlowModule : A single step in a flow. Can be a script, subflow, loop, or branch
Fields§
§id: StringUnique identifier for this step. Used to reference results via ‘results.step_id’. Must be a valid identifier (alphanumeric, underscore, hyphen)
value: Box<FlowModuleValue>§stop_after_if: Option<Box<StopAfterIf>>§stop_after_all_iters_if: Option<Box<StopAfterIf>>§skip_if: Option<Box<FlowModuleSkipIf>>§sleep: Option<Box<InputTransform>>§cache_ttl: Option<f64>Cache duration in seconds for this step’s results
cache_ignore_s3_path: Option<bool>§timeout: Option<Box<InputTransform>>§delete_after_secs: Option<i32>If set, delete the step’s args, result and logs after this many seconds following job completion
summary: Option<String>Short description of what this step does
mock: Option<Box<FlowModuleMock>>§suspend: Option<Box<FlowModuleSuspend>>§priority: Option<f64>Execution priority for this step (higher numbers run first)
continue_on_error: Option<bool>If true, flow continues even if this step fails
job_token_scopes: Option<Option<Vec<String>>>Scopes the token of this step’s jobs is restricted to (domain:action[:resource], e.g. oidc:write), on top of the flow’s own restriction: a step can only narrow it. Applies to everything the step runs (loop and branch bodies, AI agent tools).
retry: Option<Box<Retry>>§debouncing: Option<Box<FlowModuleDebouncing>>Implementations§
Source§impl FlowModule
impl FlowModule
Sourcepub fn new(id: String, value: FlowModuleValue) -> FlowModule
pub fn new(id: String, value: FlowModuleValue) -> FlowModule
A single step in a flow. Can be a script, subflow, loop, or branch