vapi_client/models/
server_message_status_update_destination.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/// 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}
22
23impl Default for ServerMessageStatusUpdateDestination {
24    fn default() -> Self {
25        Self::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")]
32    Number,
33    #[serde(rename = "sip")]
34    Sip,
35}
36
37impl Default for TypeTrue {
38    fn default() -> TypeTrue {
39        Self::Number
40    }
41}