vapi_client/models/
call_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/// CallDestination : This is the destination where the call ended up being transferred to. If the call was not transferred, this will be empty.
15/// This is the destination where the call ended up being transferred to. If the call was not transferred, this will be empty.
16#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
17#[serde(untagged)]
18pub enum CallDestination {
19    TransferDestinationNumber(models::TransferDestinationNumber),
20    TransferDestinationSip(models::TransferDestinationSip),
21}
22
23impl Default for CallDestination {
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}