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]
impl Function
pub fn encode_input(&self, tokens: &[Token]) -> Result<Bytes>
[src]
pub fn encode_input(&self, tokens: &[Token]) -> Result<Bytes>
Prepares ABI function call with given input params.
pub fn decode_output(&self, data: &[u8]) -> Result<Vec<Token>>
[src]
pub fn decode_output(&self, data: &[u8]) -> Result<Vec<Token>>
Parses the ABI function output to list of tokens.
Trait Implementations
impl Debug for Function
[src]
impl Debug for Function
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Function
[src]
impl Clone for Function
fn clone(&self) -> Function
[src]
fn clone(&self) -> Function
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Function
[src]
impl PartialEq for Function