pub struct ContainerWithMountedFileOptsBuilder<'a> { /* private fields */ }
Expand description
Builder for ContainerWithMountedFileOpts
.
Implementations§
Source§impl<'a> ContainerWithMountedFileOptsBuilder<'a>
impl<'a> ContainerWithMountedFileOptsBuilder<'a>
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.txt”).
Sourcepub fn owner<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
pub fn owner<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
A user or user:group to set for the mounted file. The user and group can either be an ID (1000:1000) or a name (foo:bar). If the group is omitted, it defaults to the same as the user.
Sourcepub fn build(
&self,
) -> Result<ContainerWithMountedFileOpts<'a>, ContainerWithMountedFileOptsBuilderError>
pub fn build( &self, ) -> Result<ContainerWithMountedFileOpts<'a>, ContainerWithMountedFileOptsBuilderError>
Trait Implementations§
Source§impl<'a> Clone for ContainerWithMountedFileOptsBuilder<'a>
impl<'a> Clone for ContainerWithMountedFileOptsBuilder<'a>
Source§fn clone(&self) -> ContainerWithMountedFileOptsBuilder<'a>
fn clone(&self) -> ContainerWithMountedFileOptsBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 · 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<'a> Freeze for ContainerWithMountedFileOptsBuilder<'a>
impl<'a> RefUnwindSafe for ContainerWithMountedFileOptsBuilder<'a>
impl<'a> Send for ContainerWithMountedFileOptsBuilder<'a>
impl<'a> Sync for ContainerWithMountedFileOptsBuilder<'a>
impl<'a> Unpin for ContainerWithMountedFileOptsBuilder<'a>
impl<'a> UnwindSafe for ContainerWithMountedFileOptsBuilder<'a>
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