Trait stepflow::prelude::Action[][src]

pub trait Action: Debug + AsAny {
    pub fn id(&self) -> &ActionId;
pub fn start(
        &mut self,
        step: &Step,
        step_name: Option<&str>,
        step_data: &StateDataFiltered<'_>,
        vars: &ObjectStoreFiltered<'_, Box<dyn Var + 'static + Sync + Send, Global>, VarId>
    ) -> Result<ActionResult, ActionError>; }

Actions fulfill the outputs of a Step

Required methods

pub fn id(&self) -> &ActionId[src]

Get the ID for the Action

pub fn start(
    &mut self,
    step: &Step,
    step_name: Option<&str>,
    step_data: &StateDataFiltered<'_>,
    vars: &ObjectStoreFiltered<'_, Box<dyn Var + 'static + Sync + Send, Global>, VarId>
) -> Result<ActionResult, ActionError>
[src]

Start the action for a Step

step_data and vars only have access to input and output data declared by the Step.

Loading content...

Implementations

impl dyn Action + 'static + Sync + Send[src]

pub fn downcast<T>(&self) -> Option<&T> where
    T: Action + Any
[src]

pub fn is<T>(&self) -> bool where
    T: Action + Any
[src]

Implementors

impl Action for HtmlFormAction[src]

impl Action for SetDataAction[src]

impl<T> Action for StringTemplateAction<T> where
    T: EscapedString
[src]

Loading content...