Struct bollard::volume::CreateVolumeOptions
source · pub struct CreateVolumeOptions<T>{
pub name: T,
pub driver: T,
pub driver_opts: HashMap<T, T>,
pub labels: HashMap<T, T>,
}
Expand description
Volume configuration used in the Create Volume API
Fields§
§name: T
The new volume’s name. If not specified, Docker generates a name.
driver: T
Name of the volume driver to use.
driver_opts: HashMap<T, T>
A mapping of driver options and values. These options are passed directly to the driver and are driver specific.
labels: HashMap<T, T>
User-defined key/value metadata.
Trait Implementations§
source§impl<T> Clone for CreateVolumeOptions<T>
impl<T> Clone for CreateVolumeOptions<T>
source§fn clone(&self) -> CreateVolumeOptions<T>
fn clone(&self) -> CreateVolumeOptions<T>
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<T> Debug for CreateVolumeOptions<T>
impl<T> Debug for CreateVolumeOptions<T>
source§impl<T> Default for CreateVolumeOptions<T>
impl<T> Default for CreateVolumeOptions<T>
source§fn default() -> CreateVolumeOptions<T>
fn default() -> CreateVolumeOptions<T>
Returns the “default value” for a type. Read more
source§impl<'de, T> Deserialize<'de> for CreateVolumeOptions<T>
impl<'de, T> Deserialize<'de> for CreateVolumeOptions<T>
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<T> PartialEq for CreateVolumeOptions<T>
impl<T> PartialEq for CreateVolumeOptions<T>
source§impl<T> Serialize for CreateVolumeOptions<T>
impl<T> Serialize for CreateVolumeOptions<T>
impl<T> StructuralPartialEq for CreateVolumeOptions<T>
Auto Trait Implementations§
impl<T> Freeze for CreateVolumeOptions<T>where
T: Freeze,
impl<T> RefUnwindSafe for CreateVolumeOptions<T>where
T: RefUnwindSafe,
impl<T> Send for CreateVolumeOptions<T>where
T: Send,
impl<T> Sync for CreateVolumeOptions<T>where
T: Sync,
impl<T> Unpin for CreateVolumeOptions<T>where
T: Unpin,
impl<T> UnwindSafe for CreateVolumeOptions<T>where
T: UnwindSafe,
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
)