vapi_client/models/
transfer_assistant_hook_action_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/// TransferAssistantHookActionDestination : This is the destination details for the transfer - can be a phone number or SIP URI
18/// This is the destination details for the transfer - can be a phone number or SIP URI
19#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, ToSchema)]
20#[serde(untagged)]
21pub enum TransferAssistantHookActionDestination {
22    TransferDestinationNumber(models::TransferDestinationNumber),
23    TransferDestinationSip(models::TransferDestinationSip),
24}
25
26impl Default for TransferAssistantHookActionDestination {
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}