vapi_client/models/
transfer_plan_message.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/// 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` or `warm-transfer-wait-for-operator-to-speak-first-and-then-say-message`.
18/// 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` or `warm-transfer-wait-for-operator-to-speak-first-and-then-say-message`.
19#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, ToSchema)]
20#[serde(untagged)]
21pub enum TransferPlanMessage {
22    String(String),
23    CustomMessage(models::CustomMessage),
24}
25
26impl Default for TransferPlanMessage {
27    fn default() -> Self {
28        Self::String(Default::default())
29    }
30}
31/// This is a custom message.
32#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, ToSchema)]
33pub enum Type {
34    #[serde(rename = "custom-message")]
35    CustomMessage,
36}
37
38impl Default for Type {
39    fn default() -> Type {
40        Self::CustomMessage
41    }
42}