pub struct DirectoryDockerBuildOptsBuilder<'a> { /* private fields */ }Expand description
Builder for DirectoryDockerBuildOpts.
Implementations§
source§impl<'a> DirectoryDockerBuildOptsBuilder<'a>
impl<'a> DirectoryDockerBuildOptsBuilder<'a>
sourcepub fn dockerfile<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
pub fn dockerfile<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
Path to the Dockerfile to use. Defaults to ‘./Dockerfile’.
sourcepub fn platform<VALUE: Into<Platform>>(&mut self, value: VALUE) -> &mut Self
pub fn platform<VALUE: Into<Platform>>(&mut self, value: VALUE) -> &mut Self
The platform to build.
sourcepub fn build_args<VALUE: Into<Vec<BuildArg>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn build_args<VALUE: Into<Vec<BuildArg>>>( &mut self, value: VALUE ) -> &mut Self
Additional build arguments.
sourcepub fn target<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
pub fn target<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
Target build stage to build.
sourcepub fn build(
&self
) -> Result<DirectoryDockerBuildOpts<'a>, DirectoryDockerBuildOptsBuilderError>
pub fn build( &self ) -> Result<DirectoryDockerBuildOpts<'a>, DirectoryDockerBuildOptsBuilderError>
Trait Implementations§
source§impl<'a> Clone for DirectoryDockerBuildOptsBuilder<'a>
impl<'a> Clone for DirectoryDockerBuildOptsBuilder<'a>
source§fn clone(&self) -> DirectoryDockerBuildOptsBuilder<'a>
fn clone(&self) -> DirectoryDockerBuildOptsBuilder<'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