pub trait WorkflowContext<E>: Send + Sync {
// Required methods
fn entity(&self) -> &E;
fn set_var(&mut self, key: &str, value: Value);
fn get_var(&self, key: &str) -> Option<&Value>;
}Expand description
Workflow execution context for an entity E.
Required Methods§
fn entity(&self) -> &E
fn set_var(&mut self, key: &str, value: Value)
fn get_var(&self, key: &str) -> Option<&Value>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".