pub struct ContainerWithMountedVolumeOptsBuilder { /* private fields */ }Expand description
Builder for ContainerWithMountedVolumeOpts.
Implementations§
Source§impl ContainerWithMountedVolumeOptsBuilder
impl ContainerWithMountedVolumeOptsBuilder
Sourcepub fn expand<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn expand<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Replace “${VAR}” or “$VAR” in the value of path according to the current environment variables defined in the container (e.g. “/$VAR/foo”).
Sourcepub fn read_only<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn read_only<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Mount the volume read-only.
Sourcepub fn build(
&self,
) -> Result<ContainerWithMountedVolumeOpts, ContainerWithMountedVolumeOptsBuilderError>
pub fn build( &self, ) -> Result<ContainerWithMountedVolumeOpts, ContainerWithMountedVolumeOptsBuilderError>
Trait Implementations§
Source§impl Clone for ContainerWithMountedVolumeOptsBuilder
impl Clone for ContainerWithMountedVolumeOptsBuilder
Source§fn clone(&self) -> ContainerWithMountedVolumeOptsBuilder
fn clone(&self) -> ContainerWithMountedVolumeOptsBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ContainerWithMountedVolumeOptsBuilder
impl RefUnwindSafe for ContainerWithMountedVolumeOptsBuilder
impl Send for ContainerWithMountedVolumeOptsBuilder
impl Sync for ContainerWithMountedVolumeOptsBuilder
impl Unpin for ContainerWithMountedVolumeOptsBuilder
impl UnsafeUnpin for ContainerWithMountedVolumeOptsBuilder
impl UnwindSafe for ContainerWithMountedVolumeOptsBuilder
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