pub struct StopAfterIf {
pub skip_if_stopped: Option<bool>,
pub expr: String,
pub error_message: Option<String>,
}Expand description
StopAfterIf : Early termination condition for a module
Fields§
§skip_if_stopped: Option<bool>If true, following steps are skipped when this condition triggers
expr: StringJavaScript expression evaluated after the module runs. Can use ‘result’ (step’s result) or ‘flow_input’. Return true to stop
error_message: Option<String>Custom error message shown when stopping
Implementations§
Source§impl StopAfterIf
impl StopAfterIf
Sourcepub fn new(expr: String) -> StopAfterIf
pub fn new(expr: String) -> StopAfterIf
Early termination condition for a module
Trait Implementations§
Source§impl Clone for StopAfterIf
impl Clone for StopAfterIf
Source§fn clone(&self) -> StopAfterIf
fn clone(&self) -> StopAfterIf
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StopAfterIf
impl Debug for StopAfterIf
Source§impl Default for StopAfterIf
impl Default for StopAfterIf
Source§fn default() -> StopAfterIf
fn default() -> StopAfterIf
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StopAfterIf
impl<'de> Deserialize<'de> for StopAfterIf
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StopAfterIf
impl PartialEq for StopAfterIf
Source§impl Serialize for StopAfterIf
impl Serialize for StopAfterIf
impl StructuralPartialEq for StopAfterIf
Auto Trait Implementations§
impl Freeze for StopAfterIf
impl RefUnwindSafe for StopAfterIf
impl Send for StopAfterIf
impl Sync for StopAfterIf
impl Unpin for StopAfterIf
impl UnwindSafe for StopAfterIf
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