pub struct Versioned {
pub schema_version: isize,
}Expand description
Versioned provides a struct with the manifest schemaVersion and mediaType. Incoming content with unknown schema version can be decoded against this struct to check the version.
Fields§
§schema_version: isizeTrait 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
impl StructuralPartialEq for Versioned
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