Struct bollard_stubs::models::Volume
source · pub struct Volume {
pub name: String,
pub driver: String,
pub mountpoint: String,
pub created_at: Option<BollardDate>,
pub status: Option<HashMap<String, HashMap<(), ()>>>,
pub labels: HashMap<String, String>,
pub scope: Option<VolumeScopeEnum>,
pub cluster_volume: Option<ClusterVolume>,
pub options: HashMap<String, String>,
pub usage_data: Option<VolumeUsageData>,
}
Fields§
§name: String
Name of the volume.
driver: String
Name of the volume driver used by the volume.
mountpoint: String
Mount path of the volume on the host.
created_at: Option<BollardDate>
Date/Time the volume was created.
status: Option<HashMap<String, HashMap<(), ()>>>
Low-level details about the volume, provided by the volume driver. Details are returned as a map with key/value pairs: {\"key\":\"value\",\"key2\":\"value2\"}
. The Status
field is optional, and is omitted if the volume driver does not support this feature.
labels: HashMap<String, String>
User-defined key/value metadata.
scope: Option<VolumeScopeEnum>
The level at which the volume exists. Either global
for cluster-wide, or local
for machine level.
cluster_volume: Option<ClusterVolume>
§options: HashMap<String, String>
The driver specific options used when creating the volume.
usage_data: Option<VolumeUsageData>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Volume
impl<'de> Deserialize<'de> for Volume
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more