Enum airnode_abi::Param [−][src]
pub enum Param {
Address {
name: String,
value: H160,
},
Bool {
name: String,
value: bool,
},
Bytes {
name: String,
value: Vec<u8>,
},
Bytes32 {
name: String,
value: U256,
},
Date {
name: String,
year: i32,
month: u32,
day: u32,
},
Int256 {
name: String,
value: U256,
sign: i32,
},
String {
name: String,
value: String,
},
String32 {
name: String,
value: String,
},
Uint256 {
name: String,
value: U256,
},
}Expand description
Atomic parameter in the Airnode ABI
Variants
parameter that embeds EVM address (160 bits, H160)
Fields of Address
name: Stringvalue: H160(non-strict) parameter that embeds boolean value, stored as single Bytes32 value, encoded as bytes of “true” or “false” string
parameter that embeds array of bytes (dynamic size)
parameter that embeds single 256 bits value
Fields of Bytes32
name: Stringvalue: U256(non-strict) parameter that embeds date value, stored as single Bytes32 value, encoded as bytes ISO-8601 string
parameter that embeds signed 256 bits value (there is no type of I256 in Ethereum primitives)
parameter that embeds UTF-8 string (dynamic size)
(non-strict) parameter that embeds string as single Bytes32 value. The length of the string should not exceed 32 bytes it will be decoded correctly if this is non-empty valid Utf-8 string
parameter that embeds unsigned 256 bits value
Fields of Uint256
name: Stringvalue: U256Implementations
returns value of the parameter as string (for debugging purposes only)
returns character of the parameter for encoding
- Upper case letters refer to dynamically sized types
- Lower case letters refer to statically sized types
- String32 is encoded into Bytes32
returns whether the size of the parameter value is fixed
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Param
impl UnwindSafe for Param
Blanket Implementations
Mutably borrows from an owned value. Read more