pub struct ImageReference { /* private fields */ }Expand description
A loss-aware, tolerant image reference.
ComposeLens deliberately accepts combined tags and digests such as
registry.example/app:1.2@sha256:... and does not reject implementation-supported values
merely because a stricter external grammar would.
Implementations§
Source§impl ImageReference
impl ImageReference
Sourcepub const fn digest(&self) -> Option<&ImageDigest>
pub const fn digest(&self) -> Option<&ImageDigest>
Returns the digest suffix without the leading at-sign.
Trait Implementations§
Source§impl Clone for ImageReference
impl Clone for ImageReference
Source§fn clone(&self) -> ImageReference
fn clone(&self) -> ImageReference
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 ImageReference
impl Debug for ImageReference
impl Eq for ImageReference
Source§impl Hash for ImageReference
impl Hash for ImageReference
Source§impl PartialEq for ImageReference
impl PartialEq for ImageReference
impl StructuralPartialEq for ImageReference
Auto Trait Implementations§
impl Freeze for ImageReference
impl RefUnwindSafe for ImageReference
impl Send for ImageReference
impl Sync for ImageReference
impl Unpin for ImageReference
impl UnsafeUnpin for ImageReference
impl UnwindSafe for ImageReference
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