pub struct AbiParameter {
pub components: Vec<AbiParameter>,
pub internal_type: Option<String>,
pub name: Option<String>,
pub type_: String,
}
Expand description
Parameter definition for ABI functions, errors, and constructors.
JSON schema
{
"description": "Parameter definition for ABI functions, errors, and constructors.",
"examples": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"type": "object",
"required": [
"type"
],
"properties": {
"components": {
"description": "Used for tuple types.",
"examples": [
[
{
"name": "x",
"type": "uint256"
}
]
],
"type": "array",
"items": {
"$ref": "#/components/schemas/AbiParameter"
}
},
"internalType": {
"description": "The internal Solidity type used by the compiler.",
"examples": [
"uint256"
],
"type": "string"
},
"name": {
"description": "The name of the parameter.",
"examples": [
"tokenId"
],
"type": "string"
},
"type": {
"description": "The canonical type of the parameter.",
"examples": [
"uint256"
],
"type": "string"
}
},
"x-audience": "public"
}
Fields§
§components: Vec<AbiParameter>
Used for tuple types.
internal_type: Option<String>
The internal Solidity type used by the compiler.
name: Option<String>
The name of the parameter.
type_: String
The canonical type of the parameter.
Implementations§
Source§impl AbiParameter
impl AbiParameter
pub fn builder() -> AbiParameter
Trait Implementations§
Source§impl Clone for AbiParameter
impl Clone for AbiParameter
Source§fn clone(&self) -> AbiParameter
fn clone(&self) -> AbiParameter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AbiParameter
impl Debug for AbiParameter
Source§impl<'de> Deserialize<'de> for AbiParameter
impl<'de> Deserialize<'de> for AbiParameter
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
Source§impl From<&AbiParameter> for AbiParameter
impl From<&AbiParameter> for AbiParameter
Source§fn from(value: &AbiParameter) -> Self
fn from(value: &AbiParameter) -> Self
Converts to this type from the input type.
Source§impl From<AbiParameter> for AbiParameter
impl From<AbiParameter> for AbiParameter
Source§fn from(value: AbiParameter) -> Self
fn from(value: AbiParameter) -> Self
Converts to this type from the input type.
Source§impl Serialize for AbiParameter
impl Serialize for AbiParameter
Source§impl TryFrom<AbiParameter> for AbiParameter
impl TryFrom<AbiParameter> for AbiParameter
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: AbiParameter) -> Result<Self, ConversionError>
fn try_from(value: AbiParameter) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for AbiParameter
impl RefUnwindSafe for AbiParameter
impl Send for AbiParameter
impl Sync for AbiParameter
impl Unpin for AbiParameter
impl UnwindSafe for AbiParameter
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