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
sourceimpl Clone for ContractMetadata
impl Clone for ContractMetadata
sourcefn clone(&self) -> ContractMetadata
fn clone(&self) -> ContractMetadata
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ContractMetadata
impl Debug for ContractMetadata
sourceimpl<'de> Deserialize<'de> for ContractMetadata
impl<'de> Deserialize<'de> for ContractMetadata
sourcefn 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
sourceimpl Serialize for ContractMetadata
impl Serialize for ContractMetadata
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more