vapi_client/models/
client_inbound_message_transfer_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/// ClientInboundMessageTransferDestination : This is the destination to transfer the call to.
16/// This is the destination to transfer the call to.
17#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
18#[serde(untagged)]
19pub enum ClientInboundMessageTransferDestination {
20    TransferDestinationNumber(models::TransferDestinationNumber),
21    TransferDestinationSip(models::TransferDestinationSip),
22}
23
24impl Default for ClientInboundMessageTransferDestination {
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}