vapi_client/models/
server_message_response_transfer_destination_request.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, ToSchema)]
18pub struct ServerMessageResponseTransferDestinationRequest {
19    #[serde(rename = "destination", skip_serializing_if = "Option::is_none")]
20    pub destination: Option<models::ServerMessageResponseTransferDestinationRequestDestination>,
21    /// This is the error message if the transfer should not be made.
22    #[serde(rename = "error", skip_serializing_if = "Option::is_none")]
23    pub error: Option<String>,
24}
25
26impl ServerMessageResponseTransferDestinationRequest {
27    pub fn new() -> ServerMessageResponseTransferDestinationRequest {
28        ServerMessageResponseTransferDestinationRequest {
29            destination: None,
30            error: None,
31        }
32    }
33}