Struct ethabi::Function [−][src]
pub struct Function { pub name: String, pub inputs: Vec<Param>, pub outputs: Vec<Param>, pub constant: bool, pub state_mutability: StateMutability, }
Expand description
Contract function specification.
Fields
name: String
Function name.
inputs: Vec<Param>
Function input.
outputs: Vec<Param>
Function output.
constant: bool
👎 Deprecated:
The constant attribute was removed in Solidity 0.5.0 and has been replaced with stateMutability. If parsing a JSON AST created with this version or later this value will always be false, which may be wrong.
Constant function.
state_mutability: StateMutability
Whether the function reads or modifies blockchain state
Implementations
Prepares ABI function call with given input params.
Parses the ABI function output to list of tokens.
Parses the ABI function input to a list of tokens.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Function
impl UnwindSafe for Function
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self