podman_rest_client/v5/models/
volume.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// Volume volume
4pub struct Volume {
5    #[serde(rename = "ClusterVolume")]
6    pub cluster_volume: Option<crate::v5::models::ClusterVolume>,
7    /// Date/Time the volume was created.
8    #[serde(rename = "CreatedAt")]
9    pub created_at: Option<String>,
10    /// Name of the volume driver used by the volume.
11    #[serde(rename = "Driver")]
12    pub driver: String,
13    /// User-defined key/value metadata.
14    #[serde(rename = "Labels")]
15    pub labels: std::collections::HashMap<String, String>,
16    /// Mount path of the volume on the host.
17    #[serde(rename = "Mountpoint")]
18    pub mountpoint: String,
19    /// Name of the volume.
20    #[serde(rename = "Name")]
21    pub name: String,
22    /// The driver specific options used when creating the volume.
23    #[serde(rename = "Options")]
24    pub options: std::collections::HashMap<String, String>,
25    /// The level at which the volume exists. Either `global` for cluster-wide,
26    /// or `local` for machine level.
27    #[serde(rename = "Scope")]
28    pub scope: String,
29    /// Low-level details about the volume, provided by the volume driver.
30    /// Details are returned as a map with key/value pairs:
31    /// `{"key":"value","key2":"value2"}`.
32    ///
33    /// The `Status` field is optional, and is omitted if the volume driver
34    /// does not support this feature.
35    #[serde(rename = "Status")]
36    pub status: Option<std::collections::HashMap<String, serde_json::Value>>,
37    #[serde(rename = "UsageData")]
38    pub usage_data: Option<crate::v5::models::UsageData>,
39}