pub struct ContainerMountBuilder<___State = __ContainerMountBuilderInitialState> { /* 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> ContainerMountBuilder<(__BindOptions, __ReadOnly, __Source, __Target, __TmpfsOptions, __Type, __VolumeOptions)>
impl<__BindOptions, __ReadOnly, __Source, __Target, __TmpfsOptions, __Type, __VolumeOptions> ContainerMountBuilder<(__BindOptions, __ReadOnly, __Source, __Target, __TmpfsOptions, __Type, __VolumeOptions)>
sourcepub fn build_struct(self) -> ContainerMountwhere
__BindOptions: IntoSet<Option<Box<Option<ContainerMountBindOptions>>>, ContainerMountBuilder__bind_options>,
__ReadOnly: IntoSet<Option<Box<Option<bool>>>, ContainerMountBuilder__read_only>,
__Source: IntoSet<Option<Box<Option<String>>>, ContainerMountBuilder__source>,
__Target: IntoSet<Box<String>, ContainerMountBuilder__target>,
__TmpfsOptions: IntoSet<Option<Box<Option<ContainerMountTmpfsOptions>>>, ContainerMountBuilder__tmpfs_options>,
__Type: IntoSet<Box<String>, ContainerMountBuilder__type>,
__VolumeOptions: IntoSet<Option<Box<Option<ContainerMountVolumeOptions>>>, ContainerMountBuilder__volume_options>,
pub fn build_struct(self) -> ContainerMountwhere
__BindOptions: IntoSet<Option<Box<Option<ContainerMountBindOptions>>>, ContainerMountBuilder__bind_options>,
__ReadOnly: IntoSet<Option<Box<Option<bool>>>, ContainerMountBuilder__read_only>,
__Source: IntoSet<Option<Box<Option<String>>>, ContainerMountBuilder__source>,
__Target: IntoSet<Box<String>, ContainerMountBuilder__target>,
__TmpfsOptions: IntoSet<Option<Box<Option<ContainerMountTmpfsOptions>>>, ContainerMountBuilder__tmpfs_options>,
__Type: IntoSet<Box<String>, ContainerMountBuilder__type>,
__VolumeOptions: IntoSet<Option<Box<Option<ContainerMountVolumeOptions>>>, ContainerMountBuilder__volume_options>,
Finishes building and returns the requested object.
sourcepub fn maybe_bind_options(
self,
value: Option<impl Into<Box<Option<ContainerMountBindOptions>>>>,
) -> <Self as __ContainerMountBuilderSetMember>::BindOptionswhere
__BindOptions: IsUnset,
pub fn maybe_bind_options(
self,
value: Option<impl Into<Box<Option<ContainerMountBindOptions>>>>,
) -> <Self as __ContainerMountBuilderSetMember>::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<ContainerMountBindOptions>>>,
) -> <Self as __ContainerMountBuilderSetMember>::BindOptionswhere
__BindOptions: IsUnset,
pub fn bind_options(
self,
value: impl Into<Box<Option<ContainerMountBindOptions>>>,
) -> <Self as __ContainerMountBuilderSetMember>::BindOptionswhere
__BindOptions: IsUnset,
Optional configuration for the bind type.
sourcepub fn maybe_read_only(
self,
value: Option<impl Into<Box<Option<bool>>>>,
) -> <Self as __ContainerMountBuilderSetMember>::ReadOnlywhere
__ReadOnly: IsUnset,
pub fn maybe_read_only(
self,
value: Option<impl Into<Box<Option<bool>>>>,
) -> <Self as __ContainerMountBuilderSetMember>::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 __ContainerMountBuilderSetMember>::ReadOnlywhere
__ReadOnly: IsUnset,
pub fn read_only(
self,
value: impl Into<Box<Option<bool>>>,
) -> <Self as __ContainerMountBuilderSetMember>::ReadOnlywhere
__ReadOnly: IsUnset,
Whether the mount should be read-only.
sourcepub fn maybe_source(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ContainerMountBuilderSetMember>::Sourcewhere
__Source: IsUnset,
pub fn maybe_source(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ContainerMountBuilderSetMember>::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 __ContainerMountBuilderSetMember>::Sourcewhere
__Source: IsUnset,
pub fn source(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ContainerMountBuilderSetMember>::Sourcewhere
__Source: IsUnset,
Mount source (e.g. a volume name, a host path).
sourcepub fn target(
self,
value: impl Into<Box<String>>,
) -> <Self as __ContainerMountBuilderSetMember>::Targetwhere
__Target: IsUnset,
pub fn target(
self,
value: impl Into<Box<String>>,
) -> <Self as __ContainerMountBuilderSetMember>::Targetwhere
__Target: IsUnset,
Container path
sourcepub fn maybe_tmpfs_options(
self,
value: Option<impl Into<Box<Option<ContainerMountTmpfsOptions>>>>,
) -> <Self as __ContainerMountBuilderSetMember>::TmpfsOptionswhere
__TmpfsOptions: IsUnset,
pub fn maybe_tmpfs_options(
self,
value: Option<impl Into<Box<Option<ContainerMountTmpfsOptions>>>>,
) -> <Self as __ContainerMountBuilderSetMember>::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<ContainerMountTmpfsOptions>>>,
) -> <Self as __ContainerMountBuilderSetMember>::TmpfsOptionswhere
__TmpfsOptions: IsUnset,
pub fn tmpfs_options(
self,
value: impl Into<Box<Option<ContainerMountTmpfsOptions>>>,
) -> <Self as __ContainerMountBuilderSetMember>::TmpfsOptionswhere
__TmpfsOptions: IsUnset,
Optional configuration for the tmpfs type.
sourcepub fn type(
self,
value: impl Into<Box<String>>,
) -> <Self as __ContainerMountBuilderSetMember>::Typewhere
__Type: IsUnset,
pub fn type(
self,
value: impl Into<Box<String>>,
) -> <Self as __ContainerMountBuilderSetMember>::Typewhere
__Type: IsUnset,
The mount type
sourcepub fn maybe_volume_options(
self,
value: Option<impl Into<Box<Option<ContainerMountVolumeOptions>>>>,
) -> <Self as __ContainerMountBuilderSetMember>::VolumeOptionswhere
__VolumeOptions: IsUnset,
pub fn maybe_volume_options(
self,
value: Option<impl Into<Box<Option<ContainerMountVolumeOptions>>>>,
) -> <Self as __ContainerMountBuilderSetMember>::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<ContainerMountVolumeOptions>>>,
) -> <Self as __ContainerMountBuilderSetMember>::VolumeOptionswhere
__VolumeOptions: IsUnset,
pub fn volume_options(
self,
value: impl Into<Box<Option<ContainerMountVolumeOptions>>>,
) -> <Self as __ContainerMountBuilderSetMember>::VolumeOptionswhere
__VolumeOptions: IsUnset,
Optional configuration for the volume type.