pub struct AbiSchemaItem {
pub anonymous: Option<bool>,
pub inputs: Vec<AbiParameter>,
pub name: Option<String>,
pub outputs: Vec<AbiParameter>,
pub state_mutability: Option<AbiSchemaItemStateMutability>,
pub type_: AbiSchemaItemType,
}Expand description
AbiSchemaItem
JSON schema
{
"type": "object",
"required": [
"type"
],
"properties": {
"anonymous": {
"type": "boolean"
},
"inputs": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AbiParameter"
}
},
"name": {
"type": "string"
},
"outputs": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AbiParameter"
}
},
"stateMutability": {
"type": "string",
"enum": [
"nonpayable",
"payable",
"pure",
"view"
]
},
"type": {
"type": "string",
"enum": [
"constructor",
"event",
"fallback",
"function",
"receive"
]
}
}
}Fields§
§anonymous: Option<bool>§inputs: Vec<AbiParameter>§name: Option<String>§outputs: Vec<AbiParameter>§state_mutability: Option<AbiSchemaItemStateMutability>§type_: AbiSchemaItemTypeTrait Implementations§
Source§impl Clone for AbiSchemaItem
impl Clone for AbiSchemaItem
Source§fn clone(&self) -> AbiSchemaItem
fn clone(&self) -> AbiSchemaItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AbiSchemaItem
impl Debug for AbiSchemaItem
Source§impl<'de> Deserialize<'de> for AbiSchemaItem
impl<'de> Deserialize<'de> for AbiSchemaItem
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<&AbiSchemaItem> for AbiSchemaItem
impl From<&AbiSchemaItem> for AbiSchemaItem
Source§fn from(value: &AbiSchemaItem) -> Self
fn from(value: &AbiSchemaItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AbiSchemaItem
impl RefUnwindSafe for AbiSchemaItem
impl Send for AbiSchemaItem
impl Sync for AbiSchemaItem
impl Unpin for AbiSchemaItem
impl UnsafeUnpin for AbiSchemaItem
impl UnwindSafe for AbiSchemaItem
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