pub struct AbiEntry {
pub entry_type: String,
pub name: String,
pub inputs: Vec<AbiParam>,
pub outputs: Vec<AbiParam>,
pub state_mutability: String,
}Expand description
A single ABI entry (function, event, or constructor).
Fields§
§entry_type: StringEntry type: “function”, “event”, “constructor”, “fallback”, “receive”.
name: StringFunction/event name (empty for constructor/fallback/receive).
inputs: Vec<AbiParam>Input parameters.
outputs: Vec<AbiParam>Output parameters (functions only).
state_mutability: StringState mutability: “pure”, “view”, “nonpayable”, “payable”.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AbiEntry
impl<'de> Deserialize<'de> for AbiEntry
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 Forget for AbiEntry
impl Freeze for AbiEntry
impl RefUnwindSafe for AbiEntry
impl Send for AbiEntry
impl Sync for AbiEntry
impl Unpin for AbiEntry
impl UnsafeUnpin for AbiEntry
impl UnwindSafe for AbiEntry
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