pub enum MediaType {
Show 14 variants
Descriptor,
LayoutHeader,
ImageManifest,
ImageIndex,
ImageLayer,
ImageLayerGzip,
ImageLayerZstd,
ImageLayerNonDistributable,
ImageLayerNonDistributableGzip,
ImageLayerNonDistributableZstd,
ImageConfig,
ArtifactManifest,
EmptyJSON,
Other(String),
}
Expand description
Media types used by OCI image format spec. Values MUST comply with RFC 6838, including the naming requirements in its section 4.2.
Variants§
Descriptor
MediaType Descriptor specifies the media type for a content descriptor.
LayoutHeader
MediaType LayoutHeader specifies the media type for the oci-layout.
ImageManifest
MediaType ImageManifest specifies the media type for an image manifest.
ImageIndex
MediaType ImageIndex specifies the media type for an image index.
ImageLayer
MediaType ImageLayer is the media type used for layers referenced by the manifest.
ImageLayerGzip
MediaType ImageLayerGzip is the media type used for gzipped layers referenced by the manifest.
ImageLayerZstd
MediaType ImageLayerZstd is the media type used for zstd compressed layers referenced by the manifest.
ImageLayerNonDistributable
MediaType ImageLayerNonDistributable is the media type for layers referenced by the manifest but with distribution restrictions.
ImageLayerNonDistributableGzip
MediaType ImageLayerNonDistributableGzip is the media type for gzipped layers referenced by the manifest but with distribution restrictions.
ImageLayerNonDistributableZstd
MediaType ImageLayerNonDistributableZstd is the media type for zstd compressed layers referenced by the manifest but with distribution restrictions.
ImageConfig
MediaType ImageConfig specifies the media type for the image configuration.
ArtifactManifest
MediaType ArtifactManifest specifies the media type used for content addressable artifacts to store them along side container images in a registry.
EmptyJSON
MediaType EmptyJSON specifies a descriptor that has no content for the implementation. The blob payload is the most minimal content that is still a valid JSON object: {} (size of 2). The blob digest of {} is sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a.
Other(String)
MediaType not specified by OCI image format.
Trait Implementations§
source§impl<'de> Deserialize<'de> for MediaType
impl<'de> Deserialize<'de> for MediaType
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 ToDockerV2S2 for MediaType
impl ToDockerV2S2 for MediaType
source§fn to_docker_v2s2(&self) -> Result<&str, Error>
fn to_docker_v2s2(&self) -> Result<&str, Error>
impl Eq for MediaType
impl StructuralPartialEq for MediaType
Auto Trait Implementations§
impl Freeze for MediaType
impl RefUnwindSafe for MediaType
impl Send for MediaType
impl Sync for MediaType
impl Unpin for MediaType
impl UnwindSafe for MediaType
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
)