pub struct SpecVersion(pub String);Expand description
Contract-family spec version string (e.g. "3.1.1", "2.6.0").
Serialized on the wire on ManualContract and
ContractRef.
Tuple Fields§
§0: StringFamily-specific version label (not the switchback container version).
Implementations§
Trait Implementations§
Source§impl Clone for SpecVersion
impl Clone for SpecVersion
Source§fn clone(&self) -> SpecVersion
fn clone(&self) -> SpecVersion
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 moreSource§impl Debug for SpecVersion
impl Debug for SpecVersion
Source§impl Display for SpecVersion
impl Display for SpecVersion
impl Eq for SpecVersion
Source§impl From<&str> for SpecVersion
impl From<&str> for SpecVersion
Source§impl From<String> for SpecVersion
impl From<String> for SpecVersion
Source§impl Hash for SpecVersion
impl Hash for SpecVersion
Source§impl Ord for SpecVersion
impl Ord for SpecVersion
Source§fn cmp(&self, other: &SpecVersion) -> Ordering
fn cmp(&self, other: &SpecVersion) -> 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 SpecVersion
impl PartialEq for SpecVersion
Source§fn eq(&self, other: &SpecVersion) -> bool
fn eq(&self, other: &SpecVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SpecVersion
impl PartialOrd for SpecVersion
impl StructuralPartialEq for SpecVersion
Auto Trait Implementations§
impl Freeze for SpecVersion
impl RefUnwindSafe for SpecVersion
impl Send for SpecVersion
impl Sync for SpecVersion
impl Unpin for SpecVersion
impl UnsafeUnpin for SpecVersion
impl UnwindSafe for SpecVersion
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