use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListPricesResponsePricing {
#[serde(rename = "currency")]
pub currency: String,
#[serde(rename = "floating_ip")]
pub floating_ip: Box<models::ListPricesResponsePricingFloatingIp>,
#[serde(rename = "floating_ips")]
pub floating_ips: Vec<models::ListPricesResponsePricingFloatingIps>,
#[serde(rename = "image")]
pub image: Box<models::ListPricesResponsePricingImage>,
#[serde(rename = "load_balancer_types")]
pub load_balancer_types: Vec<models::ListPricesResponsePricingLoadBalancerTypes>,
#[serde(rename = "primary_ips")]
pub primary_ips: Vec<models::ListPricesResponsePricingPrimaryIps>,
#[serde(rename = "server_backup")]
pub server_backup: Box<models::ListPricesResponsePricingServerBackup>,
#[serde(rename = "server_types")]
pub server_types: Vec<models::ListPricesResponsePricingServerTypes>,
#[serde(rename = "vat_rate")]
pub vat_rate: String,
#[serde(rename = "volume")]
pub volume: Box<models::ListPricesResponsePricingVolume>,
}
impl ListPricesResponsePricing {
pub fn new(
currency: String,
floating_ip: models::ListPricesResponsePricingFloatingIp,
floating_ips: Vec<models::ListPricesResponsePricingFloatingIps>,
image: models::ListPricesResponsePricingImage,
load_balancer_types: Vec<models::ListPricesResponsePricingLoadBalancerTypes>,
primary_ips: Vec<models::ListPricesResponsePricingPrimaryIps>,
server_backup: models::ListPricesResponsePricingServerBackup,
server_types: Vec<models::ListPricesResponsePricingServerTypes>,
vat_rate: String,
volume: models::ListPricesResponsePricingVolume,
) -> ListPricesResponsePricing {
ListPricesResponsePricing {
currency,
floating_ip: Box::new(floating_ip),
floating_ips,
image: Box::new(image),
load_balancer_types,
primary_ips,
server_backup: Box::new(server_backup),
server_types,
vat_rate,
volume: Box::new(volume),
}
}
}