vapi_client/models/
server_message_assistant_request_phone_number.rs

1/*
2 * Vapi API
3 *
4 * API for building voice assistants
5 *
6 * The version of the OpenAPI document: 1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15/// ServerMessageAssistantRequestPhoneNumber : This is the phone number associated with the call.  This matches one of the following: - `call.phoneNumber`, - `call.phoneNumberId`.
16/// This is the phone number associated with the call.  This matches one of the following: - `call.phoneNumber`, - `call.phoneNumberId`.
17#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
18#[serde(untagged)]
19pub enum ServerMessageAssistantRequestPhoneNumber {
20    CreateByoPhoneNumberDto(models::CreateByoPhoneNumberDto),
21    CreateTwilioPhoneNumberDto(models::CreateTwilioPhoneNumberDto),
22    CreateVonagePhoneNumberDto(models::CreateVonagePhoneNumberDto),
23    CreateVapiPhoneNumberDto(models::CreateVapiPhoneNumberDto),
24}
25
26impl Default for ServerMessageAssistantRequestPhoneNumber {
27    fn default() -> Self {
28        Self::CreateByoPhoneNumberDto(Default::default())
29    }
30}
31/// This is to create free SIP phone numbers on Vapi.
32#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
33pub enum Provider {
34    #[serde(rename = "vapi")]
35    Vapi,
36}
37
38impl Default for Provider {
39    fn default() -> Provider {
40        Self::Vapi
41    }
42}