#[repr(u8)]
pub enum MulticallVersion {
Multicall,
Multicall2,
Multicall3,
}
Available on crate feature
abigen
only.Expand description
The version of the Multicall
.
Used to determine which methods of the Multicall smart contract to use:
Multicall
:aggregate((address,bytes)[])
Multicall2
:try_aggregate(bool, (address,bytes)[])
Multicall3
:aggregate3((address,bool,bytes)[])
oraggregate3Value((address,bool,uint256,bytes)[])
Variants§
Trait Implementations§
source§impl Clone for MulticallVersion
impl Clone for MulticallVersion
source§fn clone(&self) -> MulticallVersion
fn clone(&self) -> MulticallVersion
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 MulticallVersion
impl Debug for MulticallVersion
source§impl Default for MulticallVersion
impl Default for MulticallVersion
source§fn default() -> MulticallVersion
fn default() -> MulticallVersion
Returns the “default value” for a type. Read more
source§impl From<MulticallVersion> for u8
impl From<MulticallVersion> for u8
source§fn from(v: MulticallVersion) -> Self
fn from(v: MulticallVersion) -> Self
Converts to this type from the input type.
source§impl Ord for MulticallVersion
impl Ord for MulticallVersion
source§fn cmp(&self, other: &MulticallVersion) -> Ordering
fn cmp(&self, other: &MulticallVersion) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<MulticallVersion> for MulticallVersion
impl PartialEq<MulticallVersion> for MulticallVersion
source§fn eq(&self, other: &MulticallVersion) -> bool
fn eq(&self, other: &MulticallVersion) -> bool
source§impl PartialOrd<MulticallVersion> for MulticallVersion
impl PartialOrd<MulticallVersion> for MulticallVersion
source§fn partial_cmp(&self, other: &MulticallVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &MulticallVersion) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<u8> for MulticallVersion
impl TryFrom<u8> for MulticallVersion
impl Copy for MulticallVersion
impl Eq for MulticallVersion
impl StructuralEq for MulticallVersion
impl StructuralPartialEq for MulticallVersion
Auto Trait Implementations§
impl RefUnwindSafe for MulticallVersion
impl Send for MulticallVersion
impl Sync for MulticallVersion
impl Unpin for MulticallVersion
impl UnwindSafe for MulticallVersion
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.