windmill_api/models/retry_constant.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/// RetryConstant : Retry with constant delay between attempts
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RetryConstant {
17 /// Number of retry attempts
18 #[serde(rename = "attempts", skip_serializing_if = "Option::is_none")]
19 pub attempts: Option<i32>,
20 /// Seconds to wait between retries
21 #[serde(rename = "seconds", skip_serializing_if = "Option::is_none")]
22 pub seconds: Option<i32>,
23}
24
25impl RetryConstant {
26 /// Retry with constant delay between attempts
27 pub fn new() -> RetryConstant {
28 RetryConstant {
29 attempts: None,
30 seconds: None,
31 }
32 }
33}
34