Struct ethers_etherscan::contract::ContractMetadata
source · pub struct ContractMetadata {
pub items: Vec<Metadata>,
}
Fields§
§items: Vec<Metadata>
Implementations§
source§impl ContractMetadata
impl ContractMetadata
sourcepub fn abis(&self) -> Result<Vec<Abi>, EtherscanError>
pub fn abis(&self) -> Result<Vec<Abi>, EtherscanError>
Returns the ABI of all contracts.
sourcepub fn raw_abis(&self) -> Result<Vec<RawAbi>, EtherscanError>
pub fn raw_abis(&self) -> Result<Vec<RawAbi>, EtherscanError>
Returns the raw ABI of all contracts.
sourcepub fn source_code(&self) -> String
pub fn source_code(&self) -> String
Returns the combined source code of all contracts.
sourcepub fn source_tree(&self) -> SourceTree
pub fn source_tree(&self) -> SourceTree
Returns the combined SourceTree of all contracts.
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