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(rename = "provider")]
18 pub provider: Provider,
19 #[serde(rename = "voicemailExpectedDurationSeconds")]
21 pub voicemail_expected_duration_seconds: f64,
22}
23
24impl GoogleVoicemailDetectionPlan {
25 pub fn new(provider: Provider, voicemail_expected_duration_seconds: f64) -> GoogleVoicemailDetectionPlan {
26 GoogleVoicemailDetectionPlan {
27 provider,
28 voicemail_expected_duration_seconds,
29 }
30 }
31}
32#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
34pub enum Provider {
35 #[serde(rename = "google")]
36 Google,
37}
38
39impl Default for Provider {
40 fn default() -> Provider {
41 Self::Google
42 }
43}
44