pub struct ImageBuild { /* private fields */ }Expand description
An image-build resource with independently retained source declaration and artifact settings.
Implementations§
Source§impl ImageBuild
impl ImageBuild
Sourcepub const fn new(name: Identifier) -> Self
pub const fn new(name: Identifier) -> Self
Creates an empty image-build resource.
Sourcepub const fn name(&self) -> &Identifier
pub const fn name(&self) -> &Identifier
Returns the neutral build-resource name.
Sourcepub fn set_source_declaration(
&mut self,
declaration: Sourced<BuildSourceDeclaration>,
)
pub fn set_source_declaration( &mut self, declaration: Sourced<BuildSourceDeclaration>, )
Sets the source declaration without conflating scalar and structured syntax.
Sourcepub const fn source_declaration(
&self,
) -> Option<&Sourced<BuildSourceDeclaration>>
pub const fn source_declaration( &self, ) -> Option<&Sourced<BuildSourceDeclaration>>
Returns the optional source declaration.
Sourcepub fn set_settings(&mut self, settings: Vec<Sourced<ImageBuildSetting>>)
pub fn set_settings(&mut self, settings: Vec<Sourced<ImageBuildSetting>>)
Sets artifact settings, retaining explicit emptiness separately from omission.
Sourcepub fn set_settings_with_origins(
&mut self,
settings: Vec<Sourced<ImageBuildSetting>>,
origins: Vec<Provenance>,
)
pub fn set_settings_with_origins( &mut self, settings: Vec<Sourced<ImageBuildSetting>>, origins: Vec<Provenance>, )
Sets artifact settings and their collection-level provenance.
Sourcepub fn settings(&self) -> Option<&[Sourced<ImageBuildSetting>]>
pub fn settings(&self) -> Option<&[Sourced<ImageBuildSetting>]>
Returns artifact settings in source order, if explicitly present.
Sourcepub fn settings_origins(&self) -> &[Provenance]
pub fn settings_origins(&self) -> &[Provenance]
Returns artifact-setting collection provenance.
Trait Implementations§
Source§impl Clone for ImageBuild
impl Clone for ImageBuild
Source§fn clone(&self) -> ImageBuild
fn clone(&self) -> ImageBuild
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 moreSource§impl Debug for ImageBuild
impl Debug for ImageBuild
impl Eq for ImageBuild
Source§impl PartialEq for ImageBuild
impl PartialEq for ImageBuild
impl StructuralPartialEq for ImageBuild
Auto Trait Implementations§
impl Freeze for ImageBuild
impl RefUnwindSafe for ImageBuild
impl Send for ImageBuild
impl Sync for ImageBuild
impl Unpin for ImageBuild
impl UnsafeUnpin for ImageBuild
impl UnwindSafe for ImageBuild
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