pub struct PipelineDefaults {
pub format: Option<String>,
pub build_args: HashMap<String, String>,
pub no_cache: bool,
pub cache_mounts: Vec<ZCacheMount>,
pub retries: Option<u32>,
pub platforms: Vec<String>,
}Expand description
Default settings applied to all images in the pipeline.
Individual image settings take precedence over these defaults.
Fields§
§format: Option<String>Default output format: “oci” or “docker”
build_args: HashMap<String, String>Default build arguments passed to all image builds
no_cache: boolWhether to skip cache by default
cache_mounts: Vec<ZCacheMount>Default cache mounts applied to all RUN steps in all images.
Individual ZImagefile step-level cache mounts are additive.
retries: Option<u32>Default retry count for failed RUN steps (0 = no retries)
platforms: Vec<String>Default target platforms for multi-arch builds (e.g., linux/amd64, linux/arm64).
When set, each image is built once per platform and a manifest list is created.
Trait Implementations§
Source§impl Clone for PipelineDefaults
impl Clone for PipelineDefaults
Source§fn clone(&self) -> PipelineDefaults
fn clone(&self) -> PipelineDefaults
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 moreSource§impl Debug for PipelineDefaults
impl Debug for PipelineDefaults
Source§impl Default for PipelineDefaults
impl Default for PipelineDefaults
Source§fn default() -> PipelineDefaults
fn default() -> PipelineDefaults
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PipelineDefaults
impl<'de> Deserialize<'de> for PipelineDefaults
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PipelineDefaults
impl RefUnwindSafe for PipelineDefaults
impl Send for PipelineDefaults
impl Sync for PipelineDefaults
impl Unpin for PipelineDefaults
impl UnsafeUnpin for PipelineDefaults
impl UnwindSafe for PipelineDefaults
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§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