pub struct DockerOptionsBuilder { /* private fields */ }
Expand description
Builder for DockerOptions
.
Implementations§
Source§impl DockerOptionsBuilder
impl DockerOptionsBuilder
Sourcepub fn root_dir<VALUE: Into<PathBuf>>(&mut self, value: VALUE) -> &mut Self
pub fn root_dir<VALUE: Into<PathBuf>>(&mut self, value: VALUE) -> &mut Self
Specify the root directory for docker builds.
The current working directory is used if this option is unspecified.
Sourcepub fn env(&mut self, value: Vec<(String, String)>) -> &mut Self
pub fn env(&mut self, value: Vec<(String, String)>) -> &mut Self
Additional environment variables for the build container.
Sourcepub fn docker_container_tag<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn docker_container_tag<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Docker container tag to use
Sourcepub fn build(&self) -> Result<DockerOptions, DockerOptionsBuilderError>
pub fn build(&self) -> Result<DockerOptions, DockerOptionsBuilderError>
Trait Implementations§
Source§impl Clone for DockerOptionsBuilder
impl Clone for DockerOptionsBuilder
Source§fn clone(&self) -> DockerOptionsBuilder
fn clone(&self) -> DockerOptionsBuilder
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 Freeze for DockerOptionsBuilder
impl RefUnwindSafe for DockerOptionsBuilder
impl Send for DockerOptionsBuilder
impl Sync for DockerOptionsBuilder
impl Unpin for DockerOptionsBuilder
impl UnwindSafe for DockerOptionsBuilder
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