Struct ethabi::Contract[][src]

pub struct Contract {
    pub constructor: Option<Constructor>,
    pub functions: HashMap<String, Function>,
    pub events: HashMap<String, Event>,
    pub fallback: bool,
}

API building calls to contracts ABI.

Fields

Contract constructor.

Contract functions.

Contract events.

Contract has fallback function.

Methods

impl Contract
[src]

Loads contract from json.

Creates constructor call builder.

Creates function call builder.

Creates event decoder.

Important traits for Functions<'a>

Iterate over all functions of the contract in arbitrary order.

Important traits for Events<'a>

Iterate over all events of the contract in arbitrary order.

Returns true if contract has fallback

Trait Implementations

impl Clone for Contract
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Contract
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Contract
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> Deserialize<'a> for Contract
[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for Contract

impl Sync for Contract