pub struct VolumeCreateBody {
pub driver: Option<String>,
pub driver_opts: Option<HashMap<String, String>>,
pub labels: Option<HashMap<String, String>>,
pub name: Option<String>,
}
Expand description
VolumeCreateBody Volume configuration.
Fields§
§driver: Option<String>
Name of the volume driver to use.
driver_opts: Option<HashMap<String, String>>
A mapping of driver options and values. These options are passed directly to the driver and are driver specific.
labels: Option<HashMap<String, String>>
User-defined key/value metadata.
name: Option<String>
The new volume’s name. If not specified, Docker generates a name.
Trait Implementations§
Source§impl Clone for VolumeCreateBody
impl Clone for VolumeCreateBody
Source§fn clone(&self) -> VolumeCreateBody
fn clone(&self) -> VolumeCreateBody
Returns a copy 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 Default for VolumeCreateBody
impl Default for VolumeCreateBody
Source§fn default() -> VolumeCreateBody
fn default() -> VolumeCreateBody
Returns the “default value” for a type. Read more
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