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