podman_rest_client/v5/models/
cluster_volume.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// ClusterVolume contains options and information specific to, and only present
4/// on, Swarm CSI cluster volumes.
5pub struct ClusterVolume {
6    #[serde(rename = "CreatedAt")]
7    pub created_at: Option<String>,
8    /// ID is the Swarm ID of the volume. Because cluster volumes are Swarm
9    /// objects, they have an ID, unlike non-cluster volumes, which only have a
10    /// Name. This ID can be used to refer to the cluster volume.
11    #[serde(rename = "ID")]
12    pub id: Option<String>,
13    #[serde(rename = "Info")]
14    pub info: Option<crate::v5::models::Info>,
15    /// PublishStatus contains the status of the volume as it pertains to its
16    /// publishing on Nodes.
17    #[serde(rename = "PublishStatus")]
18    pub publish_status: Option<Vec<crate::v5::models::PublishStatus>>,
19    #[serde(rename = "Spec")]
20    pub spec: Option<crate::v5::models::ClusterVolumeSpec>,
21    #[serde(rename = "UpdatedAt")]
22    pub updated_at: Option<String>,
23    #[serde(rename = "Version")]
24    pub version: Option<crate::v5::models::Version>,
25}