vapi_client/models/
transfer_destination_step.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 TransferDestinationStep {
16    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
17    pub message: Option<Box<models::TransferDestinationAssistantMessage>>,
18    #[serde(rename = "type")]
19    pub r#type: Type,
20    /// This is the step to transfer to.
21    #[serde(rename = "stepName")]
22    pub step_name: String,
23    /// This is the description of the destination, used by the AI to choose when and how to transfer the call.
24    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
25    pub description: Option<String>,
26}
27
28impl TransferDestinationStep {
29    pub fn new(r#type: Type, step_name: String) -> TransferDestinationStep {
30        TransferDestinationStep {
31            message: None,
32            r#type,
33            step_name,
34            description: None,
35        }
36    }
37}
38/// 
39#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
40pub enum Type {
41    #[serde(rename = "step")]
42    Step,
43}
44
45impl Default for Type {
46    fn default() -> Type {
47        Self::Step
48    }
49}
50