pub struct ContractRef {
pub path: String,
pub hash: String,
}Expand description
Reference to a written contract artifact.
Carries the on-disk path the contract was loaded from and a BLAKE3
hash of the contract bytes so consumers can detect divergence. Legacy
sha256: hashes are accepted on parse during the v1.x compat window;
new emissions are always blake3:.
Fields§
§path: String§hash: StringTrait Implementations§
Source§impl Clone for ContractRef
impl Clone for ContractRef
Source§fn clone(&self) -> ContractRef
fn clone(&self) -> ContractRef
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 ContractRef
impl Debug for ContractRef
Source§impl<'de> Deserialize<'de> for ContractRef
impl<'de> Deserialize<'de> for ContractRef
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 ContractRef
Source§impl PartialEq for ContractRef
impl PartialEq for ContractRef
Source§fn eq(&self, other: &ContractRef) -> bool
fn eq(&self, other: &ContractRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContractRef
impl Serialize for ContractRef
impl StructuralPartialEq for ContractRef
Auto Trait Implementations§
impl Freeze for ContractRef
impl RefUnwindSafe for ContractRef
impl Send for ContractRef
impl Sync for ContractRef
impl Unpin for ContractRef
impl UnsafeUnpin for ContractRef
impl UnwindSafe for ContractRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.