/*
 * Hetzner Cloud API
 *
 * Copied from the official API documentation for the Public Hetzner Cloud.
 *
 * The version of the OpenAPI document: 4b3f595
 *
 * Generated by: https://openapi-generator.tech
 */

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

/// ListPricesResponse : Response to GET https://api.hetzner.cloud/v1/pricing
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListPricesResponse {
    #[serde(rename = "pricing")]
    pub pricing: Box<models::ListPricesResponsePricing>,
}

impl ListPricesResponse {
    /// Response to GET https://api.hetzner.cloud/v1/pricing
    pub fn new(pricing: models::ListPricesResponsePricing) -> ListPricesResponse {
        ListPricesResponse {
            pricing: Box::new(pricing),
        }
    }
}
