Enum ethers::abi::StateMutability [−]
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
impl Clone for StateMutability
impl Clone for StateMutability
pub fn clone(&self) -> StateMutability
pub fn clone(&self) -> StateMutability
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for StateMutability
impl Debug for StateMutability
impl Default for StateMutability
impl Default for StateMutability
pub fn default() -> StateMutability
pub fn default() -> StateMutability
Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for StateMutability
impl<'de> Deserialize<'de> for StateMutability
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<StateMutability, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub 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
impl PartialEq<StateMutability> for StateMutability
impl PartialEq<StateMutability> for StateMutability
impl Serialize for StateMutability
impl Serialize for StateMutability
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more