Skip to main content

WorkflowContext

Trait WorkflowContext 

Source
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§

Source

fn entity(&self) -> &E

Source

fn set_var(&mut self, key: &str, value: Value)

Source

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".

Implementors§