pub enum StepConfig {
Shell(ShellConfig),
Http(HttpConfig),
Agent(AgentStepConfig),
Workflow(WorkflowStepConfig),
}Expand description
A serializable step configuration, wrapping one of the operation-specific configs.
Stored as JSON in the steps.input column and reconstructed by the
executor at runtime.
§Examples
use ironflow_engine::config::{StepConfig, ShellConfig};
let config = StepConfig::Shell(ShellConfig::new("echo hello"));
let json = serde_json::to_string(&config).unwrap();
assert!(json.contains("echo hello"));Variants§
Shell(ShellConfig)
A shell command step.
Http(HttpConfig)
An HTTP request step.
Agent(AgentStepConfig)
An AI agent step.
Workflow(WorkflowStepConfig)
A sub-workflow invocation step.
Implementations§
Source§impl StepConfig
impl StepConfig
Sourcepub fn kind(&self) -> StepKind
pub fn kind(&self) -> StepKind
Get the kind of step this configuration represents.
§Examples
use ironflow_engine::config::{StepConfig, ShellConfig};
use ironflow_store::entities::StepKind;
let config = StepConfig::Shell(ShellConfig::new("echo test"));
assert_eq!(config.kind(), StepKind::Shell);Trait Implementations§
Source§impl Clone for StepConfig
impl Clone for StepConfig
Source§fn clone(&self) -> StepConfig
fn clone(&self) -> StepConfig
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 moreSource§impl Debug for StepConfig
impl Debug for StepConfig
Source§impl<'de> Deserialize<'de> for StepConfig
impl<'de> Deserialize<'de> for StepConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StepConfig
impl RefUnwindSafe for StepConfig
impl Send for StepConfig
impl Sync for StepConfig
impl Unpin for StepConfig
impl UnsafeUnpin for StepConfig
impl UnwindSafe for StepConfig
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