Struct ethbind_json::Function
source · pub struct Function {
pub name: String,
pub inputs: Vec<Parameter>,
pub outputs: Vec<Parameter>,
pub state_mutability: StateMutability,
}
Expand description
A structure type to represent function
abi
Fields§
§name: String
the function name
inputs: Vec<Parameter>
An array of function’s input params
outputs: Vec<Parameter>
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)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Function
impl<'de> Deserialize<'de> for Function
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