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 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 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)