pub struct FlowResult {
pub execution_id: Uuid,
pub outputs: HashMap<String, Value>,
pub completed_nodes: HashSet<String>,
pub skipped_nodes: HashSet<String>,
pub context: HashMap<String, Value>,
}Expand description
Result of a complete or partial flow execution.
Returned by FlowRunner::run and
FlowRunner::resume_from.
Also stored by ExecutionStore implementations.
Serialize / Deserialize are derived so that store implementations
(e.g. SQLite, Redis) can round-trip the result as JSON without extra glue code.
Fields§
§execution_id: UuidUnique ID for this execution run.
outputs: HashMap<String, Value>Per-node outputs, keyed by node ID.
Skipped nodes (whose run_if evaluated to false) are present with a
null value; use skipped_nodes to distinguish them from nodes that
genuinely produced null.
completed_nodes: HashSet<String>IDs of all nodes that were processed (executed or skipped).
skipped_nodes: HashSet<String>IDs of nodes whose run_if guard evaluated to false and were skipped.
context: HashMap<String, Value>Final snapshot of the shared mutable context after execution.
Nodes may read and write this map via ExecContext::context
during execution. The final state is captured here when the flow completes.
Trait Implementations§
Source§impl Clone for FlowResult
impl Clone for FlowResult
Source§fn clone(&self) -> FlowResult
fn clone(&self) -> FlowResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more