/*
* Windmill API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.682.0
* Contact: contact@windmill.dev
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// FlowModuleSkipIf : Conditionally skip this step based on previous results or flow inputs
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FlowModuleSkipIf {
/// JavaScript expression that returns true to skip. Can use 'flow_input' or 'results.<step_id>'
#[serde(rename = "expr")]
pub expr: String,
}
impl FlowModuleSkipIf {
/// Conditionally skip this step based on previous results or flow inputs
pub fn new(expr: String) -> FlowModuleSkipIf {
FlowModuleSkipIf {
expr,
}
}
}