Enum ethers_core::abi::ParamType [−][src]
pub enum ParamType {
Address,
Bytes,
Int(usize),
Uint(usize),
Bool,
String,
Array(Box<ParamType, Global>),
FixedBytes(usize),
FixedArray(Box<ParamType, Global>, usize),
Tuple(Vec<ParamType, Global>),
}
Expand description
Function and event param types.
Variants
Address.
Bytes.
Int(usize)
Signed integer.
Tuple Fields of Int
0: usize
Uint(usize)
Unsigned integer.
Tuple Fields of Uint
0: usize
Boolean.
String.
Array of unknown size.
FixedBytes(usize)
Vector of bytes with fixed size.
Tuple Fields of FixedBytes
0: usize
Array with fixed size.
Tuple containing different types
Implementations
returns whether a zero length byte slice (0x
) is
a valid encoded form of this param type
returns whether a ParamType is dynamic used to decide how the ParamType should be encoded
Trait Implementations
pub fn deserialize<D>(
deserializer: D
) -> Result<ParamType, <D as Deserializer<'a>>::Error> where
D: Deserializer<'a>,
pub fn deserialize<D>(
deserializer: D
) -> Result<ParamType, <D as Deserializer<'a>>::Error> where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ParamType
impl UnwindSafe for ParamType
Blanket Implementations
Mutably borrows from an owned value. Read more