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 */
1011use crate::models;
12use serde::{Deserialize, Serialize};
1314/// ServerMessageStatusUpdateDestination : This is the destination the call is being transferred to. This is only sent if the status is \"forwarding\".
15/// This is the destination the call is being transferred to. This is only sent if the status is \"forwarding\".
16#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
17#[serde(untagged)]
18pub enum ServerMessageStatusUpdateDestination {
19 TransferDestinationNumber(models::TransferDestinationNumber),
20 TransferDestinationSip(models::TransferDestinationSip),
21}
2223impl Default for ServerMessageStatusUpdateDestination {
24fn default() -> Self {
25Self::TransferDestinationNumber(Default::default())
26 }
27}
28///
29#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
30pub enum TypeTrue {
31#[serde(rename = "number")]
32Number,
33#[serde(rename = "sip")]
34Sip,
35}
3637impl Default for TypeTrue {
38fn default() -> TypeTrue {
39Self::Number
40 }
41}