Enum ethers_core::abi::StateMutability
source · pub enum StateMutability {
Pure,
View,
NonPayable,
Payable,
}
Expand description
Whether a function modifies or reads blockchain state
Variants§
Pure
Specified not to read blockchain state
View
Specified to not modify the blockchain state
NonPayable
Function does not accept Ether - the default
Payable
Function accepts Ether
Trait Implementations§
source§impl Clone for StateMutability
impl Clone for StateMutability
source§fn clone(&self) -> StateMutability
fn clone(&self) -> StateMutability
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 StateMutability
impl Debug for StateMutability
source§impl Default for StateMutability
impl Default for StateMutability
source§fn default() -> StateMutability
fn default() -> StateMutability
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StateMutability
impl<'de> Deserialize<'de> for StateMutability
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<StateMutability, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<StateMutability, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for StateMutability
impl PartialEq for StateMutability
source§fn eq(&self, other: &StateMutability) -> bool
fn eq(&self, other: &StateMutability) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StateMutability
impl Serialize for StateMutability
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for StateMutability
impl Eq for StateMutability
impl StructuralPartialEq for StateMutability
Auto Trait Implementations§
impl RefUnwindSafe for StateMutability
impl Send for StateMutability
impl Sync for StateMutability
impl Unpin for StateMutability
impl UnwindSafe for StateMutability
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