pub struct ServiceTaskSpecContainerSpecMountVolumeOptionsBuilder<___State = __ServiceTaskSpecContainerSpecMountVolumeOptionsBuilderInitialState> { /* 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> ServiceTaskSpecContainerSpecMountVolumeOptionsBuilder<(__DriverName, __DriverOptions, __Labels, __NoCopy)>
impl<__DriverName, __DriverOptions, __Labels, __NoCopy> ServiceTaskSpecContainerSpecMountVolumeOptionsBuilder<(__DriverName, __DriverOptions, __Labels, __NoCopy)>
sourcepub fn build_struct(self) -> ServiceTaskSpecContainerSpecMountVolumeOptionswhere
__DriverName: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecMountVolumeOptionsBuilder__driver_name>,
__DriverOptions: IntoSet<Option<Box<Option<HashMap<String, String>>>>, ServiceTaskSpecContainerSpecMountVolumeOptionsBuilder__driver_options>,
__Labels: IntoSet<Option<Box<Option<Vec<ServiceTaskSpecContainerSpecMountVolumeOptionsLabel>>>>, ServiceTaskSpecContainerSpecMountVolumeOptionsBuilder__labels>,
__NoCopy: IntoSet<Option<Box<Option<bool>>>, ServiceTaskSpecContainerSpecMountVolumeOptionsBuilder__no_copy>,
pub fn build_struct(self) -> ServiceTaskSpecContainerSpecMountVolumeOptionswhere
__DriverName: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecMountVolumeOptionsBuilder__driver_name>,
__DriverOptions: IntoSet<Option<Box<Option<HashMap<String, String>>>>, ServiceTaskSpecContainerSpecMountVolumeOptionsBuilder__driver_options>,
__Labels: IntoSet<Option<Box<Option<Vec<ServiceTaskSpecContainerSpecMountVolumeOptionsLabel>>>>, ServiceTaskSpecContainerSpecMountVolumeOptionsBuilder__labels>,
__NoCopy: IntoSet<Option<Box<Option<bool>>>, ServiceTaskSpecContainerSpecMountVolumeOptionsBuilder__no_copy>,
Finishes building and returns the requested object.
sourcepub fn maybe_driver_name(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountVolumeOptionsBuilderSetMember>::DriverNamewhere
__DriverName: IsUnset,
pub fn maybe_driver_name(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountVolumeOptionsBuilderSetMember>::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 __ServiceTaskSpecContainerSpecMountVolumeOptionsBuilderSetMember>::DriverNamewhere
__DriverName: IsUnset,
pub fn driver_name(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountVolumeOptionsBuilderSetMember>::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 __ServiceTaskSpecContainerSpecMountVolumeOptionsBuilderSetMember>::DriverOptionswhere
__DriverOptions: IsUnset,
pub fn maybe_driver_options(
self,
value: Option<impl Into<Box<Option<HashMap<String, String>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountVolumeOptionsBuilderSetMember>::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 __ServiceTaskSpecContainerSpecMountVolumeOptionsBuilderSetMember>::DriverOptionswhere
__DriverOptions: IsUnset,
pub fn driver_options(
self,
value: impl Into<Box<Option<HashMap<String, String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountVolumeOptionsBuilderSetMember>::DriverOptionswhere
__DriverOptions: IsUnset,
key/value map of driver specific options
sourcepub fn maybe_labels(
self,
value: Option<impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecMountVolumeOptionsLabel>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountVolumeOptionsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
pub fn maybe_labels(
self,
value: Option<impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecMountVolumeOptionsLabel>>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountVolumeOptionsBuilderSetMember>::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<ServiceTaskSpecContainerSpecMountVolumeOptionsLabel>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountVolumeOptionsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
pub fn labels(
self,
value: impl Into<Box<Option<Vec<ServiceTaskSpecContainerSpecMountVolumeOptionsLabel>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountVolumeOptionsBuilderSetMember>::Labelswhere
__Labels: IsUnset,
User-defined key/value metadata
Auto Trait Implementations§
impl<___State> Freeze for ServiceTaskSpecContainerSpecMountVolumeOptionsBuilder<___State>where
___State: Freeze,
impl<___State> RefUnwindSafe for ServiceTaskSpecContainerSpecMountVolumeOptionsBuilder<___State>where
___State: RefUnwindSafe,
impl<___State> Send for ServiceTaskSpecContainerSpecMountVolumeOptionsBuilder<___State>where
___State: Send,
impl<___State> Sync for ServiceTaskSpecContainerSpecMountVolumeOptionsBuilder<___State>where
___State: Sync,
impl<___State> Unpin for ServiceTaskSpecContainerSpecMountVolumeOptionsBuilder<___State>where
___State: Unpin,
impl<___State> UnwindSafe for ServiceTaskSpecContainerSpecMountVolumeOptionsBuilder<___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