vapi-client 0.4.2

Unofficial crate for Vapi - Voice AI for developers.
Documentation
/*
 * Vapi API
 *
 * Voice AI for developers.
 *
 * The version of the OpenAPI document: 1.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ServerMessageResponseTransferDestinationRequest {
    #[serde(rename = "destination", skip_serializing_if = "Option::is_none")]
    pub destination: Option<models::ServerMessageResponseTransferDestinationRequestDestination>,
    /// This is the error message if the transfer should not be made.
    #[serde(rename = "error", skip_serializing_if = "Option::is_none")]
    pub error: Option<String>,
}

impl ServerMessageResponseTransferDestinationRequest {
    pub fn new() -> ServerMessageResponseTransferDestinationRequest {
        ServerMessageResponseTransferDestinationRequest {
            destination: None,
            error: None,
        }
    }
}