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 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
source§impl IntoIterator for ContractMetadata
impl IntoIterator 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§
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