Struct podman_autogen_api::models::volume_create::VolumeCreate
source · pub struct VolumeCreate {
pub driver: String,
pub driver_opts: HashMap<String, String>,
pub labels: HashMap<String, String>,
pub name: String,
}
Expand description
VolumeCreate : Details for creating a volume
Fields§
§driver: String
Name 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: String
The new volume’s name. If not specified, Docker generates a name.
Implementations§
Trait Implementations§
source§impl Clone for VolumeCreate
impl Clone for VolumeCreate
source§fn clone(&self) -> VolumeCreate
fn clone(&self) -> VolumeCreate
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 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
source§impl PartialEq for VolumeCreate
impl PartialEq for VolumeCreate
source§fn eq(&self, other: &VolumeCreate) -> bool
fn eq(&self, other: &VolumeCreate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VolumeCreate
impl Serialize for VolumeCreate
impl StructuralPartialEq for VolumeCreate
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)