vapi_client/models/
fallback_deepgram_voice.rs1use serde::{Deserialize, Serialize};
12use utoipa::OpenApi;
13
14
15use crate::models;
16
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, OpenApi)]
18pub struct FallbackDeepgramVoice {
19 #[serde(rename = "provider")]
21 pub provider: Provider,
22 #[serde(rename = "voiceId")]
23 pub voice_id: models::DeepgramVoiceVoiceId,
24 #[serde(rename = "mipOptOut", skip_serializing_if = "Option::is_none")]
26 pub mip_opt_out: Option<bool>,
27 #[serde(rename = "chunkPlan", skip_serializing_if = "Option::is_none")]
29 pub chunk_plan: Option<models::ChunkPlan>,
30}
31
32impl FallbackDeepgramVoice {
33 pub fn new(
34 provider: Provider,
35 voice_id: models::DeepgramVoiceVoiceId,
36 ) -> FallbackDeepgramVoice {
37 FallbackDeepgramVoice {
38 provider,
39 voice_id,
40 mip_opt_out: None,
41 chunk_plan: None,
42 }
43 }
44}
45#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, OpenApi)]
47pub enum Provider {
48 #[serde(rename = "deepgram")]
49 Deepgram,
50}
51
52impl Default for Provider {
53 fn default() -> Provider {
54 Self::Deepgram
55 }
56}