hcloud/models/
list_prices_response_pricing_image.rs

1/*
2 * Hetzner Cloud API
3 *
4 * Copied from the official API documentation for the Public Hetzner Cloud.
5 *
6 * The version of the OpenAPI document: 0.26.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ListPricesResponsePricingImage : Price of [Images](#images).
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ListPricesResponsePricingImage {
17    #[serde(rename = "price_per_gb_month")]
18    pub price_per_gb_month: Box<models::Price>,
19}
20
21impl ListPricesResponsePricingImage {
22    /// Price of [Images](#images).
23    pub fn new(price_per_gb_month: models::Price) -> ListPricesResponsePricingImage {
24        ListPricesResponsePricingImage {
25            price_per_gb_month: Box::new(price_per_gb_month),
26        }
27    }
28}