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

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

impl GetVolumeResponse {
    /// Response to GET https://api.hetzner.cloud/v1/volumes/{id}
    pub fn new(volume: models::Volume) -> GetVolumeResponse {
        GetVolumeResponse {
            volume: Box::new(volume),
        }
    }
}
