pub struct AbiInput {
pub additional_properties: Option<Value>,
pub type_: AbiInputType,
}
Expand description
Generic ABI item type encapsulating all other types besides function
.
JSON schema
{
"title": "AbiInput",
"description": "Generic ABI item type encapsulating all other types besides `function`.",
"type": "object",
"required": [
"type"
],
"properties": {
"additionalProperties": {
"description": "For additional information on the ABI JSON specification, see [the Solidity documentation](https://docs.soliditylang.org/en/latest/abi-spec.html#json).",
"examples": [
{
"inputs": [
{
"internalType": "address",
"name": "spender",
"type": "address"
}
],
"name": "ERC20InvalidSpender",
"type": "error"
}
]
},
"type": {
"description": "The type of the ABI item.",
"examples": [
"constructor"
],
"type": "string",
"enum": [
"constructor",
"error",
"event",
"fallback",
"receive"
]
}
},
"x-audience": "public"
}
Fields§
§additional_properties: Option<Value>
For additional information on the ABI JSON specification, see the Solidity documentation.
type_: AbiInputType
The type of the ABI item.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AbiInput
impl<'de> Deserialize<'de> for AbiInput
Source§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 Freeze for AbiInput
impl RefUnwindSafe for AbiInput
impl Send for AbiInput
impl Sync for AbiInput
impl Unpin for AbiInput
impl UnwindSafe for AbiInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more