vapi_client/models/transfer_plan_message.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/// TransferPlanMessage : This is the message the assistant will deliver to the destination party before connecting the customer. Usage: - Used only when `mode` is `blind-transfer-add-summary-to-sip-header`, `warm-transfer-say-message`, `warm-transfer-wait-for-operator-to-speak-first-and-then-say-message`, or `warm-transfer-experimental`.
15/// This is the message the assistant will deliver to the destination party before connecting the customer. Usage: - Used only when `mode` is `blind-transfer-add-summary-to-sip-header`, `warm-transfer-say-message`, `warm-transfer-wait-for-operator-to-speak-first-and-then-say-message`, or `warm-transfer-experimental`.
16#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
17#[serde(untagged)]
18pub enum TransferPlanMessage {
19 String(String),
20 CustomMessage(models::CustomMessage),
21}
22
23impl Default for TransferPlanMessage {
24 fn default() -> Self {
25 Self::String(Default::default())
26 }
27}
28/// This is a custom message.
29#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
30pub enum TypeTrue {
31 #[serde(rename = "custom-message")]
32 CustomMessage,
33}
34
35impl Default for TypeTrue {
36 fn default() -> TypeTrue {
37 Self::CustomMessage
38 }
39}