pub struct BuildConfig {
pub context_dir: PathBuf,
pub dockerfile_path: PathBuf,
pub tag: Option<String>,
pub build_args: HashMap<String, String>,
pub quiet: bool,
pub platforms: Vec<Platform>,
pub target: Option<String>,
pub no_cache: bool,
pub metrics: Option<RuntimeMetrics>,
}Expand description
Configuration for a build operation.
Fields§
§context_dir: PathBufPath to the build context directory
dockerfile_path: PathBufPath to the Dockerfile (relative to context or absolute)
tag: Option<String>Image tag (e.g., “myimage:latest”)
build_args: HashMap<String, String>Build arguments (ARG overrides)
quiet: boolSuppress build output
platforms: Vec<Platform>Target platforms for multi-platform builds. Empty means build for the host platform only.
target: Option<String>Build only up to this stage (--target), by alias or numeric index.
None builds the final stage.
no_cache: boolDisable the layer build cache (--no-cache): every layer is rebuilt.
metrics: Option<RuntimeMetrics>Prometheus metrics (optional).
Trait Implementations§
Source§impl Clone for BuildConfig
impl Clone for BuildConfig
Source§fn clone(&self) -> BuildConfig
fn clone(&self) -> BuildConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for BuildConfig
impl !UnwindSafe for BuildConfig
impl Freeze for BuildConfig
impl Send for BuildConfig
impl Sync for BuildConfig
impl Unpin for BuildConfig
impl UnsafeUnpin for BuildConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more