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