Skip to main content

dtz_containers/models/
volume_stats.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 VolumeStats {
17    #[serde(rename = "volumeId")]
18    pub volume_id: String,
19    #[serde(rename = "name")]
20    pub name: String,
21    #[serde(rename = "created")]
22    pub created: String,
23}
24
25impl VolumeStats {
26    pub fn new(volume_id: String, name: String, created: String) -> VolumeStats {
27        VolumeStats {
28            volume_id,
29            name,
30            created,
31        }
32    }
33}
34