vapi_client/models/
create_assistant_dto_background_sound.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/// CreateAssistantDtoBackgroundSound : This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. You can also provide a custom sound by providing a URL to an audio file.
15/// This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. You can also provide a custom sound by providing a URL to an audio file.
16#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
17#[serde(untagged)]
18pub enum CreateAssistantDtoBackgroundSound {
19    Enum(BackgroundSoundChoice),
20    Url(String),
21}
22
23#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
24pub enum BackgroundSoundChoice {
25    #[serde(rename = "office")]
26    #[default]
27    Office,
28    #[serde(rename = "off")]
29    Off,
30}
31
32impl Default for CreateAssistantDtoBackgroundSound {
33    fn default() -> Self {
34        Self::Enum(Default::default())
35    }
36}