pub struct ImageRef {
pub app: String,
pub tag: Option<String>,
pub digest: Option<String>,
}Expand description
What a compose file’s registry: image names: an app’s repository in
the org, and a tag and/or a digest.
Fields§
§app: String§tag: Option<String>§digest: Option<String>Implementations§
Source§impl ImageRef
impl ImageRef
Sourcepub fn tag_or_latest(&self) -> &str
pub fn tag_or_latest(&self) -> &str
The tag, latest by default.
Sourcepub fn pinned(&self, digest: &str) -> ImageRef
pub fn pinned(&self, digest: &str) -> ImageRef
This reference pinned to digest (the tag is kept for people).
Sourcepub fn pull_alias(&self, org: &OrgId) -> String
pub fn pull_alias(&self, org: &OrgId) -> String
The incus alias to pull: <org>/<app>@digest, or :tag. Skopeo
refuses a tag and a digest together, and the digest is what counts.
Trait Implementations§
impl Eq for ImageRef
impl StructuralPartialEq for ImageRef
Auto Trait Implementations§
impl Freeze for ImageRef
impl RefUnwindSafe for ImageRef
impl Send for ImageRef
impl Sync for ImageRef
impl Unpin for ImageRef
impl UnsafeUnpin for ImageRef
impl UnwindSafe for ImageRef
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.