pub struct ContainerWithNewFileOptsBuilder<'a> { /* private fields */ }Expand description
Builder for ContainerWithNewFileOpts.
Implementations§
source§impl<'a> ContainerWithNewFileOptsBuilder<'a>
impl<'a> ContainerWithNewFileOptsBuilder<'a>
sourcepub fn contents<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
pub fn contents<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
Content of the file to write (e.g., “Hello world!”).
sourcepub fn permissions<VALUE: Into<isize>>(&mut self, value: VALUE) -> &mut Self
pub fn permissions<VALUE: Into<isize>>(&mut self, value: VALUE) -> &mut Self
Permission given to the written file (e.g., 0600). Default: 0644.
sourcepub fn build(
&self
) -> Result<ContainerWithNewFileOpts<'a>, ContainerWithNewFileOptsBuilderError>
pub fn build( &self ) -> Result<ContainerWithNewFileOpts<'a>, ContainerWithNewFileOptsBuilderError>
Trait Implementations§
source§impl<'a> Clone for ContainerWithNewFileOptsBuilder<'a>
impl<'a> Clone for ContainerWithNewFileOptsBuilder<'a>
source§fn clone(&self) -> ContainerWithNewFileOptsBuilder<'a>
fn clone(&self) -> ContainerWithNewFileOptsBuilder<'a>
Returns a copy 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 more