Struct oci_client::manifest::Versioned
source · pub struct Versioned {
pub schema_version: i32,
pub media_type: Option<String>,
}
Expand description
Versioned provides a struct with the manifest’s schemaVersion and mediaType. Incoming content with unknown schema versions can be decoded against this struct to check the version.
Fields§
§schema_version: i32
schema_version is the image manifest schema that this image follows
media_type: Option<String>
media_type is the media type of this schema.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Versioned
impl<'de> Deserialize<'de> for Versioned
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
Auto Trait Implementations§
impl Freeze for Versioned
impl RefUnwindSafe for Versioned
impl Send for Versioned
impl Sync for Versioned
impl Unpin for Versioned
impl UnwindSafe for Versioned
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)