node!() { /* proc-macro */ }Expand description
Define a Node with fields and a process body in one macro invocation.
Syntax:
node! {
pub struct Name { field1: Type1, field2: Type2, }
context = MyCtx;
input = InputType;
output = OutputType;
|ctx, input_val| { /* can access self, returns Result<Transition