pub struct ABI {
    pub version: u8,
    pub schema: String,
    pub params: Vec<Param>,
}
Expand description

Airnode ABI object that can be encoded into the vector of U256 and decoded from it

Fields

version: u8

Id of the ABI version. It is always “1” so far

schema: String

Schema string. Each parameter is represented by a char

params: Vec<Param>

List of ABI parameters.

Implementations

constructor of Airnode ABI from the list of parameters

constructor of Airnode ABI with no parameters

constructor of Airnode ABI with a single parameter

get parameter by its name

encodes ABI into vector or 256 bit values The function can encode up to 31 parameters (and 1 byte is used to encode the encoding version).

decodes ABI from the vector or 256 bit values. This function can be used when data doesn’t contain schema, but you know it from the other source.

decodes ABI from the vector or 256 bit values

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.