#[repr(u8)]pub enum MulticallVersion {
Multicall = 1,
Multicall2 = 2,
Multicall3 = 3,
}
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§
Implementations§
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 for MulticallVersion
impl PartialEq for MulticallVersion
source§fn eq(&self, other: &MulticallVersion) -> bool
fn eq(&self, other: &MulticallVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MulticallVersion
impl PartialOrd 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 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<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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.