Struct ethbind_rust::Function
source · pub struct Function {
pub name: String,
pub inputs: Vec<Parameter, Global>,
pub outputs: Vec<Parameter, Global>,
pub state_mutability: StateMutability,
}
Expand description
A structure type to represent function
abi
Fields§
§name: String
the function name
inputs: Vec<Parameter, Global>
An array of function’s input params
outputs: Vec<Parameter, Global>
An array of function’s output params
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)
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Function
impl<'de> Deserialize<'de> for Function
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Function, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Function, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Function
impl Serialize for Function
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