Expand description
Command<S> — fluent node return type bundling update + goto + payload.
Equivalent in expressive power to building a crate::node::NodeOut
directly, but reads more naturally inside node bodies:
ⓘ
Command::new(MyUpdate { count: 1 })
.goto("next")
.with_payload(serde_json::json!({"hint": "..."}))
.into()Command<S>: Into<NodeOut<S>>, so existing node_fn closures returning
a NodeOut<S> work unchanged. .payload(...) is only honoured when the
goto fans out via Goto::Send; otherwise it’s dropped (with a debug log).
Structs§
- Command
- Fluent builder for what a node returns: state delta + routing + optional payload.