Struct oci_client::manifest::OciImageIndex
source · pub struct OciImageIndex {
pub schema_version: u8,
pub media_type: Option<String>,
pub manifests: Vec<ImageIndexEntry>,
pub annotations: Option<BTreeMap<String, String>>,
}
Expand description
The image index is a higher-level manifest which points to specific image manifest.
It is part of the OCI specification, and is defined here:
Fields§
§schema_version: u8
This is a schema version.
The specification does not specify the width of this integer.
However, the only version allowed by the specification is 2
.
So we have made this a u8.
media_type: Option<String>
This is an optional media type describing this manifest.
It is reserved for compatibility, but the specification does not seem to recommend setting it.
manifests: Vec<ImageIndexEntry>
This property contains a list of manifests for specific platforms. The spec says this field must be present but the value may be an empty array.
annotations: Option<BTreeMap<String, String>>
The annotations for this manifest
The specification says “If there are no annotations then this property MUST either be absent or be an empty map.” TO accomodate either, this is optional.
Trait Implementations§
source§impl Clone for OciImageIndex
impl Clone for OciImageIndex
source§fn clone(&self) -> OciImageIndex
fn clone(&self) -> OciImageIndex
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OciImageIndex
impl Debug for OciImageIndex
source§impl<'de> Deserialize<'de> for OciImageIndex
impl<'de> Deserialize<'de> for OciImageIndex
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 OciImageIndex
impl Display for OciImageIndex
source§impl From<OciImageIndex> for OciManifest
impl From<OciImageIndex> for OciManifest
source§fn from(m: OciImageIndex) -> Self
fn from(m: OciImageIndex) -> Self
Auto Trait Implementations§
impl Freeze for OciImageIndex
impl RefUnwindSafe for OciImageIndex
impl Send for OciImageIndex
impl Sync for OciImageIndex
impl Unpin for OciImageIndex
impl UnwindSafe for OciImageIndex
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
)