1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Volume {
#[serde(rename = "CreatedAt", skip_serializing_if = "Option::is_none")]
pub created_at: Option<String>,
#[serde(rename = "Driver")]
pub driver: String,
#[serde(rename = "Labels")]
pub labels: ::std::collections::HashMap<String, String>,
#[serde(rename = "Mountpoint")]
pub mountpoint: String,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "Options")]
pub options: ::std::collections::HashMap<String, String>,
#[serde(rename = "Scope")]
pub scope: String,
#[serde(rename = "Status", skip_serializing_if = "Option::is_none")]
pub status: Option<serde_json::Value>,
#[serde(rename = "UsageData", skip_serializing_if = "Option::is_none")]
pub usage_data: Option<Box<crate::models::VolumeUsageData>>,
}
impl Volume {
pub fn new(driver: String, labels: ::std::collections::HashMap<String, String>, mountpoint: String, name: String, options: ::std::collections::HashMap<String, String>, scope: String) -> Volume {
Volume {
created_at: None,
driver,
labels,
mountpoint,
name,
options,
scope,
status: None,
usage_data: None,
}
}
}