pub struct DirectoryDockerBuildOptsBuilder<'a> { /* private fields */ }
Expand description
Builder for DirectoryDockerBuildOpts
.
Implementations§
Source§impl<'a> DirectoryDockerBuildOptsBuilder<'a>
impl<'a> DirectoryDockerBuildOptsBuilder<'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
Build arguments to use in the build.
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 (e.g., “frontend.Dockerfile”).
Sourcepub fn no_init<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn no_init<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
If set, skip the automatic init process injected into containers created by RUN statements. This should only be used if the user requires that their exec processes be the pid 1 process in the container. Otherwise it may result in unexpected behavior.
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 secrets<VALUE: Into<Vec<SecretId>>>(&mut self, value: VALUE) -> &mut Self
pub fn secrets<VALUE: Into<Vec<SecretId>>>(&mut self, value: VALUE) -> &mut Self
Secrets to pass to the build. They will be mounted at /run/secrets/[secret-name].
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 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 DirectoryDockerBuildOptsBuilder<'a>
impl<'a> RefUnwindSafe for DirectoryDockerBuildOptsBuilder<'a>
impl<'a> Send for DirectoryDockerBuildOptsBuilder<'a>
impl<'a> Sync for DirectoryDockerBuildOptsBuilder<'a>
impl<'a> Unpin for DirectoryDockerBuildOptsBuilder<'a>
impl<'a> UnwindSafe for DirectoryDockerBuildOptsBuilder<'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