#[non_exhaustive]pub enum MediaType {
DockerFsTarGzip,
DockerImageV1,
DockerManifestList,
DockerManifestV2,
OciConfig,
OciFsTar,
OciFsTarGzip,
OciFsTarZstd,
OciImageIndex,
OciManifestV1,
}Expand description
Known media types.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DockerFsTarGzip
Variant for application/vnd.docker.image.rootfs.diff.tar.gzip.
DockerImageV1
Variant for application/vnd.docker.container.image.v1+json.
DockerManifestList
Variant for application/vnd.docker.distribution.manifest.list.v2+json.
DockerManifestV2
Variant for application/vnd.docker.distribution.manifest.v2+json.
OciConfig
Variant for application/vnd.oci.image.config.v1+json.
OciFsTar
Variant for application/vnd.oci.image.layer.v1.tar.
OciFsTarGzip
Variant for application/vnd.oci.image.layer.v1.tar+gzip.
OciFsTarZstd
Variant for application/vnd.oci.image.layer.v1.tar+zstd.
OciImageIndex
Variant for application/vnd.oci.image.index.v1+json.
OciManifestV1
Variant for application/vnd.oci.image.manifest.v1+json.
Implementations§
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy 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
Mutably borrows from an owned value. Read more