Enum fuel_ethabi::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§impl<'de> Deserialize<'de> for StateMutability
impl<'de> Deserialize<'de> for StateMutability
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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
This method tests for
self
and other
values to be equal, and is used
by ==
.