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};

/// Price : Hourly price in this Location. | Monthly price in this Location. | Additional traffic price per TB in this Location. | Price of Images per GB/month. | Price of Volumes per GB/month. | Price of one Floating IP per month. | Setup fee in this Location.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Price {
    /// Price with VAT added.
    #[serde(rename = "gross")]
    pub gross: String,
    /// Price without VAT.
    #[serde(rename = "net")]
    pub net: String,
}

impl Price {
    /// Hourly price in this Location. | Monthly price in this Location. | Additional traffic price per TB in this Location. | Price of Images per GB/month. | Price of Volumes per GB/month. | Price of one Floating IP per month. | Setup fee in this Location.
    pub fn new(gross: String, net: String) -> Price {
        Price { gross, net }
    }
}