pub struct ContractFormatVersion {
pub major: u16,
pub minor: u16,
}Expand description
Version of the canonical Blazingly contract format.
Major versions may change canonical encoding or compatibility semantics. Minor versions may add backward-compatible metadata.
Fields§
§major: u16§minor: u16Implementations§
Source§impl ContractFormatVersion
impl ContractFormatVersion
pub const fn new(major: u16, minor: u16) -> ContractFormatVersion
Trait Implementations§
Source§impl Clone for ContractFormatVersion
impl Clone for ContractFormatVersion
Source§fn clone(&self) -> ContractFormatVersion
fn clone(&self) -> ContractFormatVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContractFormatVersion
Source§impl Debug for ContractFormatVersion
impl Debug for ContractFormatVersion
Source§impl Default for ContractFormatVersion
impl Default for ContractFormatVersion
Source§fn default() -> ContractFormatVersion
fn default() -> ContractFormatVersion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContractFormatVersion
impl<'de> Deserialize<'de> for ContractFormatVersion
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContractFormatVersion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContractFormatVersion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ContractFormatVersion
impl Display for ContractFormatVersion
impl Eq for ContractFormatVersion
Source§impl Hash for ContractFormatVersion
impl Hash for ContractFormatVersion
Source§impl Ord for ContractFormatVersion
impl Ord for ContractFormatVersion
Source§fn cmp(&self, other: &ContractFormatVersion) -> Ordering
fn cmp(&self, other: &ContractFormatVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ContractFormatVersion
impl PartialEq for ContractFormatVersion
Source§impl PartialOrd for ContractFormatVersion
impl PartialOrd for ContractFormatVersion
Source§impl Serialize for ContractFormatVersion
impl Serialize for ContractFormatVersion
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ContractFormatVersion
Auto Trait Implementations§
impl Freeze for ContractFormatVersion
impl RefUnwindSafe for ContractFormatVersion
impl Send for ContractFormatVersion
impl Sync for ContractFormatVersion
impl Unpin for ContractFormatVersion
impl UnsafeUnpin for ContractFormatVersion
impl UnwindSafe for ContractFormatVersion
Blanket Implementations§
Source§impl<T> BackgroundExt for T
impl<T> BackgroundExt for T
fn background(self, task: BackgroundTask) -> Background<Self>
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