1 2 3 4 5 6 7 8
use xfstruct::*; use xfstate::XFState; pub trait Dispatchable { fn init(&mut self) -> Result<String, String>; fn dispatch(&self, node: &XFlowNode, state: &mut XFState) -> Result<String, String>; }