Struct ethabi::Function
[−]
[src]
pub struct Function { pub name: String, pub inputs: Vec<Param>, pub outputs: Vec<Param>, pub constant: bool, }
Contract function specification.
Fields
name: String
Function name.
inputs: Vec<Param>
Function input.
outputs: Vec<Param>
Function output.
constant: bool
Constant function.
Methods
impl Function
[src]
fn encode_input(&self, tokens: &[Token]) -> Result<Bytes>
[src]
Prepares ABI function call with given input params.
fn decode_output(&self, data: &[u8]) -> Result<Vec<Token>>
[src]
Parses the ABI function output to list of tokens.
Trait Implementations
impl Debug for Function
[src]
impl Clone for Function
[src]
fn clone(&self) -> Function
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more