Struct contract_metadata::ContractMetadata
source · pub struct ContractMetadata {
pub source: Source,
pub contract: Contract,
pub user: Option<User>,
pub abi: Map<String, Value>,
}Expand description
Smart contract metadata.
Fields§
§source: SourceInformation about the contract’s Wasm code.
contract: ContractMetadata about the contract.
user: Option<User>Additional user-defined metadata.
abi: Map<String, Value>Raw JSON of the contract’s abi metadata, generated during contract compilation.
Implementations§
Trait Implementations§
source§impl Clone for ContractMetadata
impl Clone for ContractMetadata
source§fn clone(&self) -> ContractMetadata
fn clone(&self) -> ContractMetadata
Returns a copy of the value. Read more
1.0.0 · 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 ContractMetadata
impl Debug for ContractMetadata
source§impl<'de> Deserialize<'de> for ContractMetadata
impl<'de> Deserialize<'de> for ContractMetadata
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
Auto Trait Implementations§
impl RefUnwindSafe for ContractMetadata
impl Send for ContractMetadata
impl Sync for ContractMetadata
impl Unpin for ContractMetadata
impl UnwindSafe for ContractMetadata
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