windmill_api/models/
retry_exponential.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.555.2
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct RetryExponential {
16    #[serde(rename = "attempts", skip_serializing_if = "Option::is_none")]
17    pub attempts: Option<i32>,
18    #[serde(rename = "multiplier", skip_serializing_if = "Option::is_none")]
19    pub multiplier: Option<i32>,
20    #[serde(rename = "seconds", skip_serializing_if = "Option::is_none")]
21    pub seconds: Option<i32>,
22    #[serde(rename = "random_factor", skip_serializing_if = "Option::is_none")]
23    pub random_factor: Option<i32>,
24}
25
26impl RetryExponential {
27    pub fn new() -> RetryExponential {
28        RetryExponential {
29            attempts: None,
30            multiplier: None,
31            seconds: None,
32            random_factor: None,
33        }
34    }
35}
36