Struct parables_testing::prelude::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 Functionpub fn encode_input(&self, tokens: &[Token]) -> Result<Vec<u8>, Error>[src] 
pub fn encode_input(&self, tokens: &[Token]) -> Result<Vec<u8>, Error>Prepares ABI function call with given input params.
pub fn decode_output(&self, data: &[u8]) -> Result<Vec<Token>, Error>[src] 
pub fn decode_output(&self, data: &[u8]) -> Result<Vec<Token>, Error>Parses the ABI function output to list of tokens.
Trait Implementations
impl PartialEq<Function> for Function[src] 
impl PartialEq<Function> for Functionfn eq(&self, other: &Function) -> bool[src] 
fn eq(&self, other: &Function) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Function) -> bool[src] 
fn ne(&self, other: &Function) -> boolThis method tests for !=.
impl Clone for Function[src] 
impl Clone for Functionfn clone(&self) -> Function[src] 
fn clone(&self) -> FunctionReturns 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 Debug for Function[src] 
impl Debug for Functionfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src] 
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<'de> Deserialize<'de> for Function[src] 
impl<'de> Deserialize<'de> for Functionfn deserialize<__D>(
    __deserializer: __D
) -> Result<Function, <__D as Deserializer<'de>>::Error> where
    __D: Deserializer<'de>, [src] 
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