Skip to main content

dtz_containers/models/
volume.rs

1/*
2 * DTZ Containers
3 *
4 * a generated client for the DTZ Containers API
5 *
6 * Contact: jens@apimeister.com
7 * Generated by: https://openapi-generator.tech
8 */
9
10#[allow(unused_imports)]
11use crate::models;
12#[allow(unused_imports)]
13use serde::{Deserialize, Serialize};
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Volume {
17    #[serde(rename = "contextId")]
18    pub context_id: dtz_identifier::ContextId,
19    #[serde(rename = "volumeId")]
20    pub volume_id: String,
21    #[serde(rename = "name")]
22    pub name: String,
23    #[serde(rename = "created")]
24    pub created: String,
25}
26
27impl Volume {
28    pub fn new(context_id: dtz_identifier::ContextId, volume_id: String, name: String, created: String) -> Volume {
29        Volume {
30            context_id,
31            volume_id,
32            name,
33            created,
34        }
35    }
36}
37