pub trait Action: Debug + AsAny {
// Required methods
fn id(&self) -> &ActionId;
fn start(
&mut self,
step: &Step,
step_name: Option<&str>,
step_data: &StateDataFiltered<'_>,
vars: &ObjectStoreFiltered<'_, Box<dyn Var + Send + Sync>, VarId>,
) -> Result<ActionResult, ActionError>;
}Expand description
Actions fulfill the outputs of a Step
Required Methods§
Sourcefn start(
&mut self,
step: &Step,
step_name: Option<&str>,
step_data: &StateDataFiltered<'_>,
vars: &ObjectStoreFiltered<'_, Box<dyn Var + Send + Sync>, VarId>,
) -> Result<ActionResult, ActionError>
fn start( &mut self, step: &Step, step_name: Option<&str>, step_data: &StateDataFiltered<'_>, vars: &ObjectStoreFiltered<'_, Box<dyn Var + Send + Sync>, VarId>, ) -> Result<ActionResult, ActionError>
Start the action for a Step
step_data and vars only have access to input and output data declared by the Step.