pub struct ImageReference {
pub domain: String,
pub path: String,
pub tag: Option<String>,
pub digest: Option<String>,
}
Expand description
A container image reference
Fields§
§domain: String
§path: String
§tag: Option<String>
§digest: Option<String>
Implementations§
Source§impl ImageReference
impl ImageReference
Sourcepub fn eq_strict(&self, other: &Self) -> bool
pub fn eq_strict(&self, other: &Self) -> bool
This equality check requires all fields to match exactly with other
. Unlike in the
PartialEq
implementation where a value of None
for either the tag
or digest
will be
treated as a wild card and can match any value in other
for the respective field.
pub fn domain(&self) -> &str
pub fn path(&self) -> &str
Sourcepub fn with_digest<S: Into<String>>(self, digest: S) -> Self
pub fn with_digest<S: Into<String>>(self, digest: S) -> Self
Add the given digest to this image reference, replacing any digest that currently exists
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 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ImageReference
impl Debug for ImageReference
Source§impl<'de> Deserialize<'de> for ImageReference
impl<'de> Deserialize<'de> for ImageReference
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ImageReference
impl Display for ImageReference
Source§impl FromStr for ImageReference
impl FromStr for ImageReference
Source§impl PartialEq for ImageReference
impl PartialEq for ImageReference
Source§impl Serialize for ImageReference
impl Serialize for ImageReference
impl Eq 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 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