pub struct HostContractStamp {
pub features: Vec<String>,
pub min_host: Option<HostVersion>,
}Expand description
The host_contract block written into manifest.json at build time.
Deliberately tolerant: a newer toolchain may add stamp members or write a
min_host this host cannot parse, and neither may turn a “this Node is too
old” answer into “the package is broken”. Unknown members are ignored and an
unparseable min_host reads as absent.
Fields§
§features: Vec<String>Feature ids, sorted by id. Kept as strings so ids from newer toolchains survive parsing.
min_host: Option<HostVersion>Implementations§
Source§impl HostContractStamp
impl HostContractStamp
Sourcepub fn same_contract(&self, other: &HostContractStamp) -> bool
pub fn same_contract(&self, other: &HostContractStamp) -> bool
Same feature set and min_host, regardless of feature order.
Trait Implementations§
Source§impl Clone for HostContractStamp
impl Clone for HostContractStamp
Source§impl Debug for HostContractStamp
impl Debug for HostContractStamp
Source§impl<'de> Deserialize<'de> for HostContractStamp
impl<'de> Deserialize<'de> for HostContractStamp
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 Eq for HostContractStamp
Source§impl PartialEq for HostContractStamp
impl PartialEq for HostContractStamp
Source§impl Serialize for HostContractStamp
impl Serialize for HostContractStamp
impl StructuralPartialEq for HostContractStamp
Auto Trait Implementations§
impl Freeze for HostContractStamp
impl RefUnwindSafe for HostContractStamp
impl Send for HostContractStamp
impl Sync for HostContractStamp
impl Unpin for HostContractStamp
impl UnsafeUnpin for HostContractStamp
impl UnwindSafe for HostContractStamp
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