pub struct StringTemplateAction<T> { /* private fields */ }Implementations§
Source§impl<T> StringTemplateAction<T>where
T: EscapedString,
impl<T> StringTemplateAction<T>where
T: EscapedString,
Sourcepub fn new(id: ActionId, template_escaped: T) -> Self
pub fn new(id: ActionId, template_escaped: T) -> Self
Create a new instance.
template_escaped must already be escaped. Parameters accepted within is {{step}}.
If the Step has a name, that will be populated. If not, it will be the [StepId].
pub fn boxed(self) -> Box<dyn Action + Sync + Send>
Trait Implementations§
Source§impl<T> Action for StringTemplateAction<T>where
T: EscapedString,
impl<T> Action for StringTemplateAction<T>where
T: EscapedString,
Source§fn 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>
Auto Trait Implementations§
impl<T> Freeze for StringTemplateAction<T>where
T: Freeze,
impl<T> RefUnwindSafe for StringTemplateAction<T>where
T: RefUnwindSafe,
impl<T> Send for StringTemplateAction<T>where
T: Send,
impl<T> Sync for StringTemplateAction<T>where
T: Sync,
impl<T> Unpin for StringTemplateAction<T>where
T: Unpin,
impl<T> UnwindSafe for StringTemplateAction<T>where
T: UnwindSafe,
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