pub struct VolumeCreate {
    pub driver: String,
    pub driver_opts: HashMap<String, String>,
    pub labels: HashMap<String, String>,
    pub name: String,
}Available on crate feature 
v5 only.Expand description
Details for creating a volume
Fields§
§driver: StringName of the volume driver to use.
driver_opts: HashMap<String, String>A mapping of driver options and values. These options are passed directly to the driver and are driver specific.
labels: HashMap<String, String>User-defined key/value metadata.
name: StringThe new volume’s name. If not specified, Docker generates a name.
Trait Implementations§
Source§impl Debug for VolumeCreate
 
impl Debug for VolumeCreate
Source§impl Default for VolumeCreate
 
impl Default for VolumeCreate
Source§fn default() -> VolumeCreate
 
fn default() -> VolumeCreate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VolumeCreate
 
impl<'de> Deserialize<'de> for VolumeCreate
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
Auto Trait Implementations§
impl Freeze for VolumeCreate
impl RefUnwindSafe for VolumeCreate
impl Send for VolumeCreate
impl Sync for VolumeCreate
impl Unpin for VolumeCreate
impl UnwindSafe for VolumeCreate
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