vapi_client/models/
voicemail_detection_backoff_plan.rs

1/*
2 * Vapi API
3 *
4 * Voice AI for developers.
5 *
6 * The version of the OpenAPI document: 1.0
7 *
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 VoicemailDetectionBackoffPlan {
16    /// This is the number of seconds to wait before starting the first retry attempt.
17    #[serde(rename = "startAtSeconds", skip_serializing_if = "Option::is_none")]
18    pub start_at_seconds: Option<f64>,
19    /// This is the interval in seconds between retry attempts.
20    #[serde(rename = "frequencySeconds", skip_serializing_if = "Option::is_none")]
21    pub frequency_seconds: Option<f64>,
22    /// This is the maximum number of retry attempts before giving up.
23    #[serde(rename = "maxRetries", skip_serializing_if = "Option::is_none")]
24    pub max_retries: Option<f64>,
25}
26
27impl VoicemailDetectionBackoffPlan {
28    pub fn new() -> VoicemailDetectionBackoffPlan {
29        VoicemailDetectionBackoffPlan {
30            start_at_seconds: None,
31            frequency_seconds: None,
32            max_retries: None,
33        }
34    }
35}