summaryrefslogtreecommitdiffstats
path: root/src/rep.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rep.rs')
-rw-r--r--src/rep.rs25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/rep.rs b/src/rep.rs
index 5327db5..5317d83 100644
--- a/src/rep.rs
+++ b/src/rep.rs
@@ -456,3 +456,28 @@ pub enum Status {
Untagged(String),
Deleted(String),
}
+
+#[derive(Clone, Debug, Serialize, Deserialize)]
+#[serde(rename_all = "PascalCase")]
+pub struct VolumeCreateInfo {
+ pub name: String,
+}
+
+#[derive(Clone, Debug, Serialize, Deserialize)]
+#[serde(rename_all = "PascalCase")]
+pub struct Volumes {
+ pub volumes: Option<Vec<Volume>>,
+ pub warnings: Option<Vec<String>>,
+}
+
+#[derive(Clone, Debug, Serialize, Deserialize)]
+#[serde(rename_all = "PascalCase")]
+pub struct Volume {
+ pub created_at: String,
+ pub driver: String,
+ pub labels: Option<HashMap<String, String>>,
+ pub name: String,
+ pub mountpoint: String,
+ pub options: Option<HashMap<String, String>>,
+ pub scope: String,
+}