pub struct BaseImage {
pub image: Image,
pub tag: Option<String>,
pub digest: Option<String>,
pub alias: Option<ImageAlias>,
pub platform: Option<String>,
}Expand description
Base image in FROM instruction.
Fields§
§image: ImageThe image reference.
tag: Option<String>Image tag (e.g., “latest”, “3.9”).
digest: Option<String>Image digest (e.g., “sha256:…”).
alias: Option<ImageAlias>Stage alias (AS name).
platform: Option<String>Target platform (–platform=…).
Implementations§
Source§impl BaseImage
impl BaseImage
Sourcepub fn is_variable(&self) -> bool
pub fn is_variable(&self) -> bool
Check if the image uses a variable reference.
Sourcepub fn is_scratch(&self) -> bool
pub fn is_scratch(&self) -> bool
Check if this is the scratch image.
Sourcepub fn has_version(&self) -> bool
pub fn has_version(&self) -> bool
Check if the image has an explicit tag or digest.
Trait Implementations§
impl StructuralPartialEq for BaseImage
Auto Trait Implementations§
impl Freeze for BaseImage
impl RefUnwindSafe for BaseImage
impl Send for BaseImage
impl Sync for BaseImage
impl Unpin for BaseImage
impl UnwindSafe for BaseImage
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> 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 moreCreates a shared type from an unshared type.