windmill_api/models/
retry.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.592.1
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Retry : Retry configuration for failed module executions
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Retry {
17    #[serde(rename = "constant", skip_serializing_if = "Option::is_none")]
18    pub constant: Option<Box<models::RetryConstant>>,
19    #[serde(rename = "exponential", skip_serializing_if = "Option::is_none")]
20    pub exponential: Option<Box<models::RetryExponential>>,
21    #[serde(rename = "retry_if", skip_serializing_if = "Option::is_none")]
22    pub retry_if: Option<Box<models::RetryIf>>,
23}
24
25impl Retry {
26    /// Retry configuration for failed module executions
27    pub fn new() -> Retry {
28        Retry {
29            constant: None,
30            exponential: None,
31            retry_if: None,
32        }
33    }
34}
35