pub struct Manifest {
pub schema_version: isize,
pub media_type: Option<String>,
pub config: Descriptor,
pub layers: Vec<Descriptor>,
pub annotations: Option<HashMap<String, String>>,
}Expand description
Manifest provides application/vnd.oci.image.manifest.v1+json mediatype structure when marshalled to JSON.
Fields§
§schema_version: isizeschema_version is the image manifest schema that this image follows
media_type: Option<String>MediaType specificies the type of this document data structure e.g. application/vnd.oci.image.manifest.v1+json
config: DescriptorConfig references a configuration object for a container, by digest. The referenced configuration object is a JSON blob that the runtime uses to set up the container.
layers: Vec<Descriptor>Layers is an indexed list of layers referenced by the manifest.
annotations: Option<HashMap<String, String>>Annotations contains arbitrary metadata for the image manifest.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Manifest
impl<'de> Deserialize<'de> for Manifest
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 Manifest
Auto Trait Implementations§
impl Freeze for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnwindSafe for Manifest
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