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<StateMutability> for StateMutability
impl PartialEq<StateMutability> for StateMutability
source§fn eq(&self, other: &StateMutability) -> bool
fn eq(&self, other: &StateMutability) -> bool
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