podman_rest_client/v5/models/
info.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// Info contains information about the Volume as a whole as provided by
4/// the CSI storage plugin.
5pub struct Info {
6    /// AccessibleTopolgoy is the topology this volume is actually accessible
7    /// from.
8    #[serde(rename = "AccessibleTopology")]
9    pub accessible_topology: Option<Vec<crate::v5::models::Topology>>,
10    /// CapacityBytes is the capacity of the volume in bytes. A value of 0
11    /// indicates that the capacity is unknown.
12    #[serde(rename = "CapacityBytes")]
13    pub capacity_bytes: Option<i64>,
14    /// VolumeContext is the context originating from the CSI storage plugin
15    /// when the Volume is created.
16    #[serde(rename = "VolumeContext")]
17    pub volume_context: Option<std::collections::HashMap<String, String>>,
18    /// VolumeID is the ID of the Volume as seen by the CSI storage plugin. This
19    /// is distinct from the Volume's Swarm ID, which is the ID used by all of
20    /// the Docker Engine to refer to the Volume. If this field is blank, then
21    /// the Volume has not been successfully created yet.
22    #[serde(rename = "VolumeID")]
23    pub volume_id: Option<String>,
24}