windmill-api 1.683.1

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.683.1
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// FlowModuleMock : Mock configuration for testing without executing the actual step
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FlowModuleMock {
    /// If true, return mock value instead of executing
    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// Value to return when mocked
    #[serde(rename = "return_value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub return_value: Option<Option<serde_json::Value>>,
}

impl FlowModuleMock {
    /// Mock configuration for testing without executing the actual step
    pub fn new() -> FlowModuleMock {
        FlowModuleMock {
            enabled: None,
            return_value: None,
        }
    }
}