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
39
40
41
42
43
44
45
46
/*
* Windmill API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.680.0
* Contact: contact@windmill.dev
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// FlowModuleDebouncing : Debounce configuration for this step (EE only)
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FlowModuleDebouncing {
/// Delay in seconds to debounce this step's executions across flow runs
#[serde(rename = "debounce_delay_s", skip_serializing_if = "Option::is_none")]
pub debounce_delay_s: Option<i32>,
/// Expression to group debounced executions. Supports $workspace and $args[name]. Default: $workspace/flow/<flow_path>-<step_id>
#[serde(rename = "debounce_key", skip_serializing_if = "Option::is_none")]
pub debounce_key: Option<String>,
/// Array-type arguments to accumulate across debounced executions
#[serde(rename = "debounce_args_to_accumulate", skip_serializing_if = "Option::is_none")]
pub debounce_args_to_accumulate: Option<Vec<String>>,
/// Maximum total time in seconds before forced execution
#[serde(rename = "max_total_debouncing_time", skip_serializing_if = "Option::is_none")]
pub max_total_debouncing_time: Option<i32>,
/// Maximum number of debounces before forced execution
#[serde(rename = "max_total_debounces_amount", skip_serializing_if = "Option::is_none")]
pub max_total_debounces_amount: Option<i32>,
}
impl FlowModuleDebouncing {
/// Debounce configuration for this step (EE only)
pub fn new() -> FlowModuleDebouncing {
FlowModuleDebouncing {
debounce_delay_s: None,
debounce_key: None,
debounce_args_to_accumulate: None,
max_total_debouncing_time: None,
max_total_debounces_amount: None,
}
}
}