oci_image_spec/specs/versioned.rs
1/// Versioned provides a struct with the manifest schemaVersion and mediaType.
2/// Incoming content with unknown schema version can be decoded against this
3/// struct to check the version.
4#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
5pub struct Versioned {
6 // SchemaVersion is the image manifest schema that this image follows
7 #[serde(rename = "SchemaVersion")]
8 pub schema_version: isize,
9}