vapi_client/models/
client_inbound_message_transfer.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ClientInboundMessageTransfer {
16    /// This is the type of the message. Send \"transfer\" message to transfer the call to a destination.
17    #[serde(rename = "type")]
18    pub r#type: TypeTrue,
19    #[serde(rename = "destination", skip_serializing_if = "Option::is_none")]
20    pub destination: Option<models::ClientInboundMessageTransferDestination>,
21    /// This is the content to say.
22    #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
23    pub content: Option<String>,
24}
25
26impl ClientInboundMessageTransfer {
27    pub fn new(r#type: TypeTrue) -> ClientInboundMessageTransfer {
28        ClientInboundMessageTransfer {
29            r#type,
30            destination: None,
31            content: None,
32        }
33    }
34}
35/// This is the type of the message. Send \"transfer\" message to transfer the call to a destination.
36#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
37pub enum TypeTrue {
38    #[serde(rename = "transfer")]
39    Transfer,
40}
41
42impl Default for TypeTrue {
43    fn default() -> TypeTrue {
44        Self::Transfer
45    }
46}