1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Windmill API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.864.0
* 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>>,
/// If true, the mock applies only to runs started as a flow preview (from the editor, and every job under it, subflows included). Absent or false, it applies to every run.
#[serde(rename = "preview_only", skip_serializing_if = "Option::is_none")]
pub preview_only: Option<bool>,
}
impl FlowModuleMock {
/// Mock configuration for testing without executing the actual step
pub fn new() -> FlowModuleMock {
FlowModuleMock {
enabled: None,
return_value: None,
preview_only: None,
}
}
}