pub struct WorkflowNode {
pub node_id: NodeId,
pub task_type: String,
pub inputs: HashMap<String, Value>,
pub outputs: HashMap<String, Value>,
pub parameters: HashMap<String, Value>,
pub status: NodeStatus,
}Expand description
A node inside a WorkflowDag.
Each node represents a single processing step with typed inputs, typed outputs, an opaque parameter bag, and an optional task-type tag.
Fields§
§node_id: NodeIdUnique node identifier.
task_type: StringHuman-readable task type / name.
inputs: HashMap<String, Value>Named input ports and their current values (optional).
outputs: HashMap<String, Value>Named output ports and their produced values (optional).
parameters: HashMap<String, Value>Opaque parameter bag for task configuration.
status: NodeStatusCurrent execution status.
Implementations§
Source§impl WorkflowNode
impl WorkflowNode
Sourcepub fn with_input(self, key: impl Into<String>, value: Value) -> Self
pub fn with_input(self, key: impl Into<String>, value: Value) -> Self
Attach an input value.
Sourcepub fn with_parameter(self, key: impl Into<String>, value: Value) -> Self
pub fn with_parameter(self, key: impl Into<String>, value: Value) -> Self
Attach a parameter.
Sourcepub fn set_output(&mut self, key: impl Into<String>, value: Value)
pub fn set_output(&mut self, key: impl Into<String>, value: Value)
Record an output produced by this node.
Trait Implementations§
Source§impl Clone for WorkflowNode
impl Clone for WorkflowNode
Source§fn clone(&self) -> WorkflowNode
fn clone(&self) -> WorkflowNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkflowNode
impl Debug for WorkflowNode
Source§impl<'de> Deserialize<'de> for WorkflowNode
impl<'de> Deserialize<'de> for WorkflowNode
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 WorkflowNode
impl RefUnwindSafe for WorkflowNode
impl Send for WorkflowNode
impl Sync for WorkflowNode
impl Unpin for WorkflowNode
impl UnsafeUnpin for WorkflowNode
impl UnwindSafe for WorkflowNode
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