pub struct ContainerMountVolumeOptionsBuilder<___State = __ContainerMountVolumeOptionsBuilderInitialState> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build_struct()
.
Implementations§
source§impl<__DriverName, __DriverOptions, __Labels, __NoCopy> ContainerMountVolumeOptionsBuilder<(__DriverName, __DriverOptions, __Labels, __NoCopy)>
impl<__DriverName, __DriverOptions, __Labels, __NoCopy> ContainerMountVolumeOptionsBuilder<(__DriverName, __DriverOptions, __Labels, __NoCopy)>
sourcepub fn build_struct(self) -> ContainerMountVolumeOptionswhere
__DriverName: IntoSet<Option<Box<Option<String>>>, ContainerMountVolumeOptionsBuilder__driver_name>,
__DriverOptions: IntoSet<Option<Box<Option<HashMap<String, String>>>>, ContainerMountVolumeOptionsBuilder__driver_options>,
__Labels: IntoSet<Option<Box<Option<Vec<ContainerMountVolumeOptionsLabel>>>>, ContainerMountVolumeOptionsBuilder__labels>,
__NoCopy: IntoSet<Option<Box<Option<bool>>>, ContainerMountVolumeOptionsBuilder__no_copy>,
pub fn build_struct(self) -> ContainerMountVolumeOptionswhere
__DriverName: IntoSet<Option<Box<Option<String>>>, ContainerMountVolumeOptionsBuilder__driver_name>,
__DriverOptions: IntoSet<Option<Box<Option<HashMap<String, String>>>>, ContainerMountVolumeOptionsBuilder__driver_options>,
__Labels: IntoSet<Option<Box<Option<Vec<ContainerMountVolumeOptionsLabel>>>>, ContainerMountVolumeOptionsBuilder__labels>,
__NoCopy: IntoSet<Option<Box<Option<bool>>>, ContainerMountVolumeOptionsBuilder__no_copy>,
Finishes building and returns the requested object.
sourcepub fn maybe_driver_name(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ContainerMountVolumeOptionsBuilderSetMember>::DriverNamewhere
__DriverName: IsUnset,
pub fn maybe_driver_name(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ContainerMountVolumeOptionsBuilderSetMember>::DriverNamewhere
__DriverName: IsUnset,
Same as [Self::r#driver_name
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn driver_name(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ContainerMountVolumeOptionsBuilderSetMember>::DriverNamewhere
__DriverName: IsUnset,
pub fn driver_name(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ContainerMountVolumeOptionsBuilderSetMember>::DriverNamewhere
__DriverName: IsUnset,
Name of the driver to use to create the volume.
sourcepub fn maybe_driver_options(
self,
value: Option<impl Into<Box<Option<HashMap<String, String>>>>>,
) -> <Self as __ContainerMountVolumeOptionsBuilderSetMember>::DriverOptionswhere
__DriverOptions: IsUnset,
pub fn maybe_driver_options(
self,
value: Option<impl Into<Box<Option<HashMap<String, String>>>>>,
) -> <Self as __ContainerMountVolumeOptionsBuilderSetMember>::DriverOptionswhere
__DriverOptions: IsUnset,
Same as [Self::r#driver_options
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn driver_options(
self,
value: impl Into<Box<Option<HashMap<String, String>>>>,
) -> <Self as __ContainerMountVolumeOptionsBuilderSetMember>::DriverOptionswhere
__DriverOptions: IsUnset,
pub fn driver_options(
self,
value: impl Into<Box<Option<HashMap<String, String>>>>,
) -> <Self as __ContainerMountVolumeOptionsBuilderSetMember>::DriverOptionswhere
__DriverOptions: IsUnset,
key/value map of driver specific options.
sourcepub fn maybe_labels(
self,
value: Option<impl Into<Box<Option<Vec<ContainerMountVolumeOptionsLabel>>>>>,
) -> <Self as __ContainerMountVolumeOptionsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
pub fn maybe_labels(
self,
value: Option<impl Into<Box<Option<Vec<ContainerMountVolumeOptionsLabel>>>>>,
) -> <Self as __ContainerMountVolumeOptionsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
Same as [Self::r#labels
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn labels(
self,
value: impl Into<Box<Option<Vec<ContainerMountVolumeOptionsLabel>>>>,
) -> <Self as __ContainerMountVolumeOptionsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
pub fn labels(
self,
value: impl Into<Box<Option<Vec<ContainerMountVolumeOptionsLabel>>>>,
) -> <Self as __ContainerMountVolumeOptionsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
User-defined key/value metadata.
Auto Trait Implementations§
impl<___State> Freeze for ContainerMountVolumeOptionsBuilder<___State>where
___State: Freeze,
impl<___State> RefUnwindSafe for ContainerMountVolumeOptionsBuilder<___State>where
___State: RefUnwindSafe,
impl<___State> Send for ContainerMountVolumeOptionsBuilder<___State>where
___State: Send,
impl<___State> Sync for ContainerMountVolumeOptionsBuilder<___State>where
___State: Sync,
impl<___State> Unpin for ContainerMountVolumeOptionsBuilder<___State>where
___State: Unpin,
impl<___State> UnwindSafe for ContainerMountVolumeOptionsBuilder<___State>where
___State: 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