pub struct VolumeCreateBody {
pub driver: String,
pub driver_opts: HashMap<String, String>,
pub labels: HashMap<String, String>,
pub name: String,
}Expand description
VolumeCreateBody Volume configuration
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.
Implementations§
Trait Implementations§
Source§impl Clone for VolumeCreateBody
impl Clone for VolumeCreateBody
Source§fn clone(&self) -> VolumeCreateBody
fn clone(&self) -> VolumeCreateBody
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VolumeCreateBody
impl Debug for VolumeCreateBody
Source§impl<'de> Deserialize<'de> for VolumeCreateBody
impl<'de> Deserialize<'de> for VolumeCreateBody
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
Source§impl FromStr for VolumeCreateBody
Converts Query Parameters representation (style=form, explode=false) to a VolumeCreateBody value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for VolumeCreateBody
Converts Query Parameters representation (style=form, explode=false) to a VolumeCreateBody value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for VolumeCreateBody
impl PartialEq for VolumeCreateBody
Source§impl Serialize for VolumeCreateBody
impl Serialize for VolumeCreateBody
Source§impl ToString for VolumeCreateBody
Converts the VolumeCreateBody value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for VolumeCreateBody
Converts the VolumeCreateBody value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer
Source§impl Validate for VolumeCreateBody
impl Validate for VolumeCreateBody
Source§impl<'v_a> ValidateArgs<'v_a> for VolumeCreateBody
impl<'v_a> ValidateArgs<'v_a> for VolumeCreateBody
impl StructuralPartialEq for VolumeCreateBody
Auto Trait Implementations§
impl Freeze for VolumeCreateBody
impl RefUnwindSafe for VolumeCreateBody
impl Send for VolumeCreateBody
impl Sync for VolumeCreateBody
impl Unpin for VolumeCreateBody
impl UnwindSafe for VolumeCreateBody
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