hcloud 0.25.0

Unofficial Rust crate for accessing the Hetzner Cloud API
Documentation
/*
 * Hetzner Cloud API
 *
 * Copied from the official API documentation for the Public Hetzner Cloud.
 *
 * The version of the OpenAPI document: 0.28.0
 *
 * Generated by: https://openapi-generator.tech
 */

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

/// ListPricesResponsePricingVolume : Price of Volumes.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListPricesResponsePricingVolume {
    #[serde(rename = "price_per_gb_month")]
    pub price_per_gb_month: Box<models::Price>,
}

impl ListPricesResponsePricingVolume {
    /// Price of Volumes.
    pub fn new(price_per_gb_month: models::Price) -> ListPricesResponsePricingVolume {
        ListPricesResponsePricingVolume {
            price_per_gb_month: Box::new(price_per_gb_month),
        }
    }
}