pub struct Index {
pub schema_version: isize,
pub media_type: Option<String>,
pub manifests: Vec<Descriptor>,
pub annotations: Option<HashMap<String, String>>,
}Expand description
Index references manifests for various platforms.
This structure provides application/vnd.oci.image.index.v1+json mediatype when marshalled to JSON.
Fields§
§schema_version: isize§media_type: Option<String>§manifests: Vec<Descriptor>§annotations: Option<HashMap<String, String>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Index
impl<'de> Deserialize<'de> for Index
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 StructuralPartialEq for Index
Auto Trait Implementations§
impl Freeze for Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
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