vapi_client/models/
google_voicemail_detection_plan.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GoogleVoicemailDetectionPlan {
16 #[serde(
18 rename = "beepMaxAwaitSeconds",
19 skip_serializing_if = "Option::is_none"
20 )]
21 pub beep_max_await_seconds: Option<f64>,
22 #[serde(rename = "provider")]
24 pub provider: ProviderTrue,
25 #[serde(rename = "backoffPlan", skip_serializing_if = "Option::is_none")]
27 pub backoff_plan: Option<models::VoicemailDetectionBackoffPlan>,
28}
29
30impl GoogleVoicemailDetectionPlan {
31 pub fn new(provider: ProviderTrue) -> GoogleVoicemailDetectionPlan {
32 GoogleVoicemailDetectionPlan {
33 beep_max_await_seconds: None,
34 provider,
35 backoff_plan: None,
36 }
37 }
38}
39#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
41pub enum ProviderTrue {
42 #[serde(rename = "google")]
43 Google,
44}
45
46impl Default for ProviderTrue {
47 fn default() -> ProviderTrue {
48 Self::Google
49 }
50}