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

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

impl GetServerTypeResponse {
    /// Response to GET https://api.hetzner.cloud/v1/server_types/{id}
    pub fn new(server_type: models::ServerType) -> GetServerTypeResponse {
        GetServerTypeResponse {
            server_type: Box::new(server_type),
        }
    }
}
