pub struct PatchMetadata {
pub name: String,
pub version: Version,
pub interface_version: Version,
pub type_hash: u64,
pub description: Option<String>,
pub author: Option<String>,
}Expand description
Metadata about a patch
Fields§
§name: StringPatch name/identifier
version: VersionPatch version
interface_version: VersionInterface version this patch implements
type_hash: u64Type hash for ABI compatibility checking
description: Option<String>Optional description
Author information
Implementations§
Trait Implementations§
Source§impl Clone for PatchMetadata
impl Clone for PatchMetadata
Source§fn clone(&self) -> PatchMetadata
fn clone(&self) -> PatchMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PatchMetadata
impl Debug for PatchMetadata
Source§impl<'de> Deserialize<'de> for PatchMetadata
impl<'de> Deserialize<'de> for PatchMetadata
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 PatchMetadata
impl RefUnwindSafe for PatchMetadata
impl Send for PatchMetadata
impl Sync for PatchMetadata
impl Unpin for PatchMetadata
impl UnwindSafe for PatchMetadata
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