Struct oci_client::manifest::ImageIndexEntry
source · pub struct ImageIndexEntry {
pub media_type: String,
pub digest: String,
pub size: i64,
pub platform: Option<Platform>,
pub annotations: Option<BTreeMap<String, String>>,
}
Expand description
The manifest entry of an ImageIndex
.
It is part of the OCI specification, and is defined in the manifests
section here:
Fields§
§media_type: String
The media type of this descriptor.
Layers, config, and manifests may all have descriptors. Each is differentiated by its mediaType.
This REQUIRED property contains the media type of the referenced content. Values MUST comply with RFC 6838, including the naming requirements in its section 4.2.
digest: String
The SHA 256 or 512 digest of the object this describes.
This REQUIRED property is the digest of the targeted content, conforming to the requirements outlined in Digests. Retrieved content SHOULD be verified against this digest when consumed via untrusted sources.
size: i64
The size, in bytes, of the object this describes.
This REQUIRED property specifies the size, in bytes, of the raw content. This property exists so that a client will have an expected size for the content before processing. If the length of the retrieved content does not match the specified length, the content SHOULD NOT be trusted.
platform: Option<Platform>
This OPTIONAL property describes the minimum runtime requirements of the image. This property SHOULD be present if its target is platform-specific.
annotations: Option<BTreeMap<String, String>>
This OPTIONAL property contains arbitrary metadata for the image index. This OPTIONAL property MUST use the annotation rules.
Trait Implementations§
source§impl Clone for ImageIndexEntry
impl Clone for ImageIndexEntry
source§fn clone(&self) -> ImageIndexEntry
fn clone(&self) -> ImageIndexEntry
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImageIndexEntry
impl Debug for ImageIndexEntry
source§impl<'de> Deserialize<'de> for ImageIndexEntry
impl<'de> Deserialize<'de> for ImageIndexEntry
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>,
source§impl Display for ImageIndexEntry
impl Display for ImageIndexEntry
Auto Trait Implementations§
impl Freeze for ImageIndexEntry
impl RefUnwindSafe for ImageIndexEntry
impl Send for ImageIndexEntry
impl Sync for ImageIndexEntry
impl Unpin for ImageIndexEntry
impl UnwindSafe for ImageIndexEntry
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)