pub struct Volume {
pub name: String,
pub driver: String,
pub mountpoint: String,
pub created_at: Option<String>,
pub status: Option<HashMap<String, HashMap<(), ()>>>,
pub labels: HashMap<String, String>,
pub scope: Option<VolumeScopeEnum>,
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<String>
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.
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<Volume, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Volume, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Volume
impl Serialize for Volume
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Volume
Auto Trait Implementations§
impl Freeze for Volume
impl RefUnwindSafe for Volume
impl Send for Volume
impl Sync for Volume
impl Unpin for Volume
impl UnwindSafe for Volume
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)