pub struct LocalImageMetadata {
pub reference: String,
pub os: String,
pub architecture: String,
pub size: Option<u64>,
pub digest: Option<String>,
pub created: Option<String>,
}Expand description
Platform + identity metadata recorded for a locally-built image.
Serialized to LOCAL_IMAGE_METADATA_FILE. Only reference, os, and
architecture are guaranteed; the remaining fields are populated when they
are cheaply available at write time and are otherwise None (and resolved
live at read time).
Fields§
§reference: StringCanonical image reference (the first build tag), e.g. myapp:latest.
os: StringOCI os field ("darwin" for a macOS Seatbelt build). Maps to
crate::spec::OsKind via OsKind::from_oci_str.
architecture: StringOCI architecture field (Go GOARCH: "arm64", "amd64", …).
size: Option<u64>Total on-disk size of the rootfs/ tree in bytes, when recorded.
digest: Option<String>Content digest of the image, when one is known.
created: Option<String>RFC 3339 creation timestamp, when recorded.
Implementations§
Trait Implementations§
Source§impl Clone for LocalImageMetadata
impl Clone for LocalImageMetadata
Source§fn clone(&self) -> LocalImageMetadata
fn clone(&self) -> LocalImageMetadata
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 LocalImageMetadata
impl Debug for LocalImageMetadata
Source§impl Default for LocalImageMetadata
impl Default for LocalImageMetadata
Source§fn default() -> LocalImageMetadata
fn default() -> LocalImageMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LocalImageMetadata
impl<'de> Deserialize<'de> for LocalImageMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LocalImageMetadata
Source§impl PartialEq for LocalImageMetadata
impl PartialEq for LocalImageMetadata
Source§fn eq(&self, other: &LocalImageMetadata) -> bool
fn eq(&self, other: &LocalImageMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LocalImageMetadata
impl Serialize for LocalImageMetadata
impl StructuralPartialEq for LocalImageMetadata
Auto Trait Implementations§
impl Freeze for LocalImageMetadata
impl RefUnwindSafe for LocalImageMetadata
impl Send for LocalImageMetadata
impl Sync for LocalImageMetadata
impl Unpin for LocalImageMetadata
impl UnsafeUnpin for LocalImageMetadata
impl UnwindSafe for LocalImageMetadata
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.