pub struct ComponentProvidedContract {
pub contract: String,
pub interface_version: u32,
pub contract_hash: String,
pub implementation: String,
}Expand description
One contract a component provides, alongside the Rust type implementing it.
A component may provide more than one contract (one producer entrypoint per
contract); each entry keeps its own contract_hash so a change to any single
contract’s ABI is independently detectable.
Fields§
§contract: String§interface_version: u32§contract_hash: String§implementation: StringTrait Implementations§
Source§impl Clone for ComponentProvidedContract
impl Clone for ComponentProvidedContract
Source§impl Debug for ComponentProvidedContract
impl Debug for ComponentProvidedContract
Source§impl<'de> Deserialize<'de> for ComponentProvidedContract
impl<'de> Deserialize<'de> for ComponentProvidedContract
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 ComponentProvidedContract
impl StructuralPartialEq for ComponentProvidedContract
Auto Trait Implementations§
impl Freeze for ComponentProvidedContract
impl RefUnwindSafe for ComponentProvidedContract
impl Send for ComponentProvidedContract
impl Sync for ComponentProvidedContract
impl Unpin for ComponentProvidedContract
impl UnsafeUnpin for ComponentProvidedContract
impl UnwindSafe for ComponentProvidedContract
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