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
sourceimpl Clone for StateMutability
impl Clone for StateMutability
sourcefn clone(&self) -> StateMutability
fn clone(&self) -> StateMutability
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for StateMutability
impl Debug for StateMutability
sourceimpl Default for StateMutability
impl Default for StateMutability
sourcefn default() -> StateMutability
fn default() -> StateMutability
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for StateMutability
impl<'de> Deserialize<'de> for StateMutability
sourcefn 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
sourceimpl PartialEq<StateMutability> for StateMutability
impl PartialEq<StateMutability> for StateMutability
sourcefn eq(&self, other: &StateMutability) -> bool
fn eq(&self, other: &StateMutability) -> bool
sourceimpl Serialize for StateMutability
impl Serialize for StateMutability
sourcefn 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 StructuralEq 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more