Enum ethers_contract_abigen::Explorer
source · pub enum Explorer {
Etherscan,
Bscscan,
Polygonscan,
Snowtrace,
}Expand description
An etherscan-like blockchain explorer.
Variants§
Implementations§
source§impl Explorer
impl Explorer
sourcepub fn from_chain(chain: Chain) -> Result<Self>
pub fn from_chain(chain: Chain) -> Result<Self>
Returns the chain’s Explorer, if it is known.
sourcepub const fn chain(&self) -> Chain
pub const fn chain(&self) -> Chain
Returns the Explorer’s chain. If it has multiple, the main one is returned.
Trait Implementations§
source§impl PartialEq for Explorer
impl PartialEq for Explorer
impl Copy for Explorer
impl Eq for Explorer
impl StructuralPartialEq for Explorer
Auto Trait Implementations§
impl RefUnwindSafe for Explorer
impl Send for Explorer
impl Sync for Explorer
impl Unpin for Explorer
impl UnwindSafe for Explorer
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.