Struct dagger_sdk::ContainerBuildOptsBuilder
source · pub struct ContainerBuildOptsBuilder<'a> { /* private fields */ }Expand description
Builder for ContainerBuildOpts.
Implementations§
source§impl<'a> ContainerBuildOptsBuilder<'a>
impl<'a> ContainerBuildOptsBuilder<'a>
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 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. Default: ‘./Dockerfile’.
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<ContainerBuildOpts<'a>, ContainerBuildOptsBuilderError>
pub fn build( &self ) -> Result<ContainerBuildOpts<'a>, ContainerBuildOptsBuilderError>
Trait Implementations§
source§impl<'a> Clone for ContainerBuildOptsBuilder<'a>
impl<'a> Clone for ContainerBuildOptsBuilder<'a>
source§fn clone(&self) -> ContainerBuildOptsBuilder<'a>
fn clone(&self) -> ContainerBuildOptsBuilder<'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