pub struct WorkflowExecutor { /* private fields */ }Expand description
Executor for running workflow templates.
Implementations§
Source§impl WorkflowExecutor
impl WorkflowExecutor
Sourcepub fn new(grite: GriteClient) -> Self
pub fn new(grite: GriteClient) -> Self
Create a new executor with the given Grite client.
Sourcepub fn execute(
&self,
template: &WorkflowTemplate,
vars: HashMap<String, String>,
) -> Result<WorkflowInstance, WorkflowError>
pub fn execute( &self, template: &WorkflowTemplate, vars: HashMap<String, String>, ) -> Result<WorkflowInstance, WorkflowError>
Execute a workflow template with the given variables.
Auto Trait Implementations§
impl Freeze for WorkflowExecutor
impl RefUnwindSafe for WorkflowExecutor
impl Send for WorkflowExecutor
impl Sync for WorkflowExecutor
impl Unpin for WorkflowExecutor
impl UnwindSafe for WorkflowExecutor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more