Struct ethbind_rust::Fallback
source · pub struct Fallback {
pub state_mutability: StateMutability,
}
Expand description
A structure type to represent fallback function
abi
Fields§
§state_mutability: StateMutability
a string with one of the following values: pure (specified to not read blockchain state), view (specified to not modify the blockchain state), nonpayable (function does not accept Ether - the default) and payable (function accepts Ether)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Fallback
impl<'de> Deserialize<'de> for Fallback
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Fallback, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Fallback, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Fallback
impl Serialize for Fallback
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