zernio 0.0.451

API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
Documentation
/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.4
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetVoiceCallEstimate200Response {
    #[serde(
        rename = "destinationCountry",
        default,
        with = "::serde_with::rust::double_option",
        skip_serializing_if = "Option::is_none"
    )]
    pub destination_country: Option<Option<String>>,
    #[serde(rename = "minutes", skip_serializing_if = "Option::is_none")]
    pub minutes: Option<i32>,
    /// Billable cost per minute for the requested options.
    #[serde(rename = "perMinuteUsd", skip_serializing_if = "Option::is_none")]
    pub per_minute_usd: Option<f64>,
    #[serde(rename = "breakdown", skip_serializing_if = "Option::is_none")]
    pub breakdown: Option<Box<models::GetVoiceCallEstimate200ResponseBreakdown>>,
}

impl GetVoiceCallEstimate200Response {
    pub fn new() -> GetVoiceCallEstimate200Response {
        GetVoiceCallEstimate200Response {
            destination_country: None,
            minutes: None,
            per_minute_usd: None,
            breakdown: None,
        }
    }
}