pub struct ContainerVolumeBuilder<___State = __ContainerVolumeBuilderInitialState> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build_struct()
.
Implementations§
source§impl<__ContainerPath, __FromContainer, __HostPath, __ReadOnly, __VolumeName> ContainerVolumeBuilder<(__ContainerPath, __FromContainer, __HostPath, __ReadOnly, __VolumeName)>
impl<__ContainerPath, __FromContainer, __HostPath, __ReadOnly, __VolumeName> ContainerVolumeBuilder<(__ContainerPath, __FromContainer, __HostPath, __ReadOnly, __VolumeName)>
sourcepub fn build_struct(self) -> ContainerVolumewhere
__ContainerPath: IntoSet<Option<Box<Option<String>>>, ContainerVolumeBuilder__container_path>,
__FromContainer: IntoSet<Option<Box<Option<String>>>, ContainerVolumeBuilder__from_container>,
__HostPath: IntoSet<Option<Box<Option<String>>>, ContainerVolumeBuilder__host_path>,
__ReadOnly: IntoSet<Option<Box<Option<bool>>>, ContainerVolumeBuilder__read_only>,
__VolumeName: IntoSet<Option<Box<Option<String>>>, ContainerVolumeBuilder__volume_name>,
pub fn build_struct(self) -> ContainerVolumewhere
__ContainerPath: IntoSet<Option<Box<Option<String>>>, ContainerVolumeBuilder__container_path>,
__FromContainer: IntoSet<Option<Box<Option<String>>>, ContainerVolumeBuilder__from_container>,
__HostPath: IntoSet<Option<Box<Option<String>>>, ContainerVolumeBuilder__host_path>,
__ReadOnly: IntoSet<Option<Box<Option<bool>>>, ContainerVolumeBuilder__read_only>,
__VolumeName: IntoSet<Option<Box<Option<String>>>, ContainerVolumeBuilder__volume_name>,
Finishes building and returns the requested object.
sourcepub fn maybe_container_path(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ContainerVolumeBuilderSetMember>::ContainerPathwhere
__ContainerPath: IsUnset,
pub fn maybe_container_path(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ContainerVolumeBuilderSetMember>::ContainerPathwhere
__ContainerPath: IsUnset,
Same as [Self::r#container_path
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn container_path(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ContainerVolumeBuilderSetMember>::ContainerPathwhere
__ContainerPath: IsUnset,
pub fn container_path(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ContainerVolumeBuilderSetMember>::ContainerPathwhere
__ContainerPath: IsUnset,
The path in the container where the volume will be mounted.
sourcepub fn maybe_from_container(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ContainerVolumeBuilderSetMember>::FromContainerwhere
__FromContainer: IsUnset,
pub fn maybe_from_container(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ContainerVolumeBuilderSetMember>::FromContainerwhere
__FromContainer: IsUnset,
Same as [Self::r#from_container
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn from_container(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ContainerVolumeBuilderSetMember>::FromContainerwhere
__FromContainer: IsUnset,
pub fn from_container(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ContainerVolumeBuilderSetMember>::FromContainerwhere
__FromContainer: IsUnset,
The container where the volume is coming from.
sourcepub fn maybe_host_path(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ContainerVolumeBuilderSetMember>::HostPathwhere
__HostPath: IsUnset,
pub fn maybe_host_path(
self,
value: Option<impl Into<Box<Option<String>>>>,
) -> <Self as __ContainerVolumeBuilderSetMember>::HostPathwhere
__HostPath: IsUnset,
Same as [Self::r#host_path
], but accepts an Option
as input. See that method’s documentation for more details.
sourcepub fn host_path(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ContainerVolumeBuilderSetMember>::HostPathwhere
__HostPath: IsUnset,
pub fn host_path(
self,
value: impl Into<Box<Option<String>>>,
) -> <Self as __ContainerVolumeBuilderSetMember>::HostPathwhere
__HostPath: IsUnset,
The path on the host where the volume is coming from.
sourcepub fn maybe_read_only(
self,
value: Option<impl Into<Box<Option<bool>>>>,
) -> <Self as __ContainerVolumeBuilderSetMember>::ReadOnlywhere
__ReadOnly: IsUnset,
pub fn maybe_read_only(
self,
value: Option<impl Into<Box<Option<bool>>>>,
) -> <Self as __ContainerVolumeBuilderSetMember>::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 __ContainerVolumeBuilderSetMember>::ReadOnlywhere
__ReadOnly: IsUnset,
pub fn read_only(
self,
value: impl Into<Box<Option<bool>>>,
) -> <Self as __ContainerVolumeBuilderSetMember>::ReadOnlywhere
__ReadOnly: IsUnset,
If true
, this volume will be readonly. Defaults to false
.