Struct DockerBuildOptions
pub struct DockerBuildOptions { /* private fields */ }Expand description
Docker build option primitives.
Implementations§
§impl DockerBuildOptions
impl DockerBuildOptions
pub const fn new(context: BuildContext) -> DockerBuildOptions
pub const fn new(context: BuildContext) -> DockerBuildOptions
Creates build options for a context.
pub fn with_arg(self, arg: BuildArg) -> DockerBuildOptions
pub fn with_arg(self, arg: BuildArg) -> DockerBuildOptions
Adds a build argument.
pub fn with_target(self, target: BuildTarget) -> DockerBuildOptions
pub fn with_target(self, target: BuildTarget) -> DockerBuildOptions
Adds a target stage.
pub fn with_platform(self, platform: DockerPlatform) -> DockerBuildOptions
pub fn with_platform(self, platform: DockerPlatform) -> DockerBuildOptions
Adds a platform.
pub const fn without_cache(self) -> DockerBuildOptions
pub const fn without_cache(self) -> DockerBuildOptions
Disables build cache.
pub const fn context(&self) -> &BuildContext
pub const fn context(&self) -> &BuildContext
Returns the context.
pub const fn platform(&self) -> Option<&DockerPlatform>
pub const fn platform(&self) -> Option<&DockerPlatform>
Returns the optional platform.
pub const fn cache(&self) -> CacheMode
pub const fn cache(&self) -> CacheMode
Returns the cache mode.
Trait Implementations§
§impl Clone for DockerBuildOptions
impl Clone for DockerBuildOptions
§fn clone(&self) -> DockerBuildOptions
fn clone(&self) -> DockerBuildOptions
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 more§impl Debug for DockerBuildOptions
impl Debug for DockerBuildOptions
§impl PartialEq for DockerBuildOptions
impl PartialEq for DockerBuildOptions
impl Eq for DockerBuildOptions
impl StructuralPartialEq for DockerBuildOptions
Auto Trait Implementations§
impl Freeze for DockerBuildOptions
impl RefUnwindSafe for DockerBuildOptions
impl Send for DockerBuildOptions
impl Sync for DockerBuildOptions
impl Unpin for DockerBuildOptions
impl UnsafeUnpin for DockerBuildOptions
impl UnwindSafe for DockerBuildOptions
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