dtz-containers 2.2.5

a generated client for the DTZ Containers API
Documentation
/*
 * DTZ Containers
 *
 * a generated client for the DTZ Containers API
 *
 * Contact: jens@apimeister.com
 * Generated by: https://openapi-generator.tech
 */

#[allow(unused_imports)]
use crate::models;
#[allow(unused_imports)]
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Volume {
    #[serde(rename = "contextId")]
    pub context_id: dtz_identifier::ContextId,
    #[serde(rename = "volumeId")]
    pub volume_id: String,
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "created")]
    pub created: String,
}

impl Volume {
    pub fn new(context_id: dtz_identifier::ContextId, volume_id: String, name: String, created: String) -> Volume {
        Volume {
            context_id,
            volume_id,
            name,
            created,
        }
    }
}