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