pub struct ServiceTaskSpecContainerSpecMountBuilder<___State = __ServiceTaskSpecContainerSpecMountBuilderInitialState> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build_struct()
.
Implementations§
source§impl<__BindOptions, __ReadOnly, __Source, __Target, __TmpfsOptions, __Type, __VolumeOptions> ServiceTaskSpecContainerSpecMountBuilder<(__BindOptions, __ReadOnly, __Source, __Target, __TmpfsOptions, __Type, __VolumeOptions)>
impl<__BindOptions, __ReadOnly, __Source, __Target, __TmpfsOptions, __Type, __VolumeOptions> ServiceTaskSpecContainerSpecMountBuilder<(__BindOptions, __ReadOnly, __Source, __Target, __TmpfsOptions, __Type, __VolumeOptions)>
sourcepub fn build_struct(self) -> ServiceTaskSpecContainerSpecMountwhere
__BindOptions: IntoSet<Option<Box<Option<ServiceTaskSpecContainerSpecMountBindOptions>>>, ServiceTaskSpecContainerSpecMountBuilder__bind_options>,
__ReadOnly: IntoSet<Option<Box<Option<bool>>>, ServiceTaskSpecContainerSpecMountBuilder__read_only>,
__Source: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecMountBuilder__source>,
__Target: IntoSet<Box<String>, ServiceTaskSpecContainerSpecMountBuilder__target>,
__TmpfsOptions: IntoSet<Option<Box<Option<ServiceTaskSpecContainerSpecMountTmpfsOptions>>>, ServiceTaskSpecContainerSpecMountBuilder__tmpfs_options>,
__Type: IntoSet<Box<String>, ServiceTaskSpecContainerSpecMountBuilder__type>,
__VolumeOptions: IntoSet<Option<Box<Option<ServiceTaskSpecContainerSpecMountVolumeOptions>>>, ServiceTaskSpecContainerSpecMountBuilder__volume_options>,
pub fn build_struct(self) -> ServiceTaskSpecContainerSpecMountwhere
__BindOptions: IntoSet<Option<Box<Option<ServiceTaskSpecContainerSpecMountBindOptions>>>, ServiceTaskSpecContainerSpecMountBuilder__bind_options>,
__ReadOnly: IntoSet<Option<Box<Option<bool>>>, ServiceTaskSpecContainerSpecMountBuilder__read_only>,
__Source: IntoSet<Option<Box<Option<String>>>, ServiceTaskSpecContainerSpecMountBuilder__source>,
__Target: IntoSet<Box<String>, ServiceTaskSpecContainerSpecMountBuilder__target>,
__TmpfsOptions: IntoSet<Option<Box<Option<ServiceTaskSpecContainerSpecMountTmpfsOptions>>>, ServiceTaskSpecContainerSpecMountBuilder__tmpfs_options>,
__Type: IntoSet<Box<String>, ServiceTaskSpecContainerSpecMountBuilder__type>,
__VolumeOptions: IntoSet<Option<Box<Option<ServiceTaskSpecContainerSpecMountVolumeOptions>>>, ServiceTaskSpecContainerSpecMountBuilder__volume_options>,
Finishes building and returns the requested object.
sourcepub fn maybe_bind_options(
self,
value: Option<impl Into<Box<Option<ServiceTaskSpecContainerSpecMountBindOptions>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::BindOptionswhere
__BindOptions: IsUnset,
pub fn maybe_bind_options(
self,
value: Option<impl Into<Box<Option<ServiceTaskSpecContainerSpecMountBindOptions>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::BindOptionswhere
__BindOptions: IsUnset,
Same as [Self::r#bind_options
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn bind_options(
self,
value: impl Into<Box<Option<ServiceTaskSpecContainerSpecMountBindOptions>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::BindOptionswhere
__BindOptions: IsUnset,
pub fn bind_options(
self,
value: impl Into<Box<Option<ServiceTaskSpecContainerSpecMountBindOptions>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::BindOptionswhere
__BindOptions: IsUnset,
Optional configuration for the bind type
sourcepub fn maybe_read_only(
self,
value: Option<impl Into<Box<Option<bool>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::ReadOnlywhere
__ReadOnly: IsUnset,
pub fn maybe_read_only(
self,
value: Option<impl Into<Box<Option<bool>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::ReadOnlywhere
__ReadOnly: IsUnset,
Same as [Self::r#read_only
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn read_only(
self,
value: impl Into<Box<Option<bool>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::ReadOnlywhere
__ReadOnly: IsUnset,
pub fn read_only(
self,
value: impl Into<Box<Option<bool>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::ReadOnlywhere
__ReadOnly: IsUnset,
Whether the mount should be read-only
sourcepub fn maybe_source(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::Sourcewhere
__Source: IsUnset,
pub fn maybe_source(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::Sourcewhere
__Source: IsUnset,
Same as [Self::r#source
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn source(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::Sourcewhere
__Source: IsUnset,
pub fn source(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::Sourcewhere
__Source: IsUnset,
Mount source (e.g. a volume name, a host path)
sourcepub fn target(
self,
value: impl Into<Box<String>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::Targetwhere
__Target: IsUnset,
pub fn target(
self,
value: impl Into<Box<String>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::Targetwhere
__Target: IsUnset,
Container path
sourcepub fn maybe_tmpfs_options(
self,
value: Option<impl Into<Box<Option<ServiceTaskSpecContainerSpecMountTmpfsOptions>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::TmpfsOptionswhere
__TmpfsOptions: IsUnset,
pub fn maybe_tmpfs_options(
self,
value: Option<impl Into<Box<Option<ServiceTaskSpecContainerSpecMountTmpfsOptions>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::TmpfsOptionswhere
__TmpfsOptions: IsUnset,
Same as [Self::r#tmpfs_options
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn tmpfs_options(
self,
value: impl Into<Box<Option<ServiceTaskSpecContainerSpecMountTmpfsOptions>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::TmpfsOptionswhere
__TmpfsOptions: IsUnset,
pub fn tmpfs_options(
self,
value: impl Into<Box<Option<ServiceTaskSpecContainerSpecMountTmpfsOptions>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::TmpfsOptionswhere
__TmpfsOptions: IsUnset,
Optional configuration for the tmpfs type
sourcepub fn type(
self,
value: impl Into<Box<String>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::Typewhere
__Type: IsUnset,
pub fn type(
self,
value: impl Into<Box<String>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::Typewhere
__Type: IsUnset,
The mount type
sourcepub fn maybe_volume_options(
self,
value: Option<impl Into<Box<Option<ServiceTaskSpecContainerSpecMountVolumeOptions>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::VolumeOptionswhere
__VolumeOptions: IsUnset,
pub fn maybe_volume_options(
self,
value: Option<impl Into<Box<Option<ServiceTaskSpecContainerSpecMountVolumeOptions>>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::VolumeOptionswhere
__VolumeOptions: IsUnset,
Same as [Self::r#volume_options
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn volume_options(
self,
value: impl Into<Box<Option<ServiceTaskSpecContainerSpecMountVolumeOptions>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::VolumeOptionswhere
__VolumeOptions: IsUnset,
pub fn volume_options(
self,
value: impl Into<Box<Option<ServiceTaskSpecContainerSpecMountVolumeOptions>>>,
) -> <Self as __ServiceTaskSpecContainerSpecMountBuilderSetMember>::VolumeOptionswhere
__VolumeOptions: IsUnset,
Optional configuration for the volume type