pub struct EvmAbiFunction {
pub name: String,
pub name_snake_case: String,
pub signature: String,
pub selector_signature: String,
pub selector: String,
}Expand description
Parsed function info extracted from a JSON ABI.
Fields§
§name: StringFunction name (e.g. “swap”).
name_snake_case: StringFunction name in snake_case (e.g. “swap”).
signature: StringHuman-readable signature with names (e.g. “swap(address recipient, bool zeroForOne, int256 amountSpecified, …)”).
selector_signature: StringCanonical selector signature without names (e.g. “swap(address,bool,int256,uint160,bytes)”).
selector: String4-byte selector as 0x-prefixed hex string.
Trait Implementations§
Source§impl Clone for EvmAbiFunction
impl Clone for EvmAbiFunction
Source§fn clone(&self) -> EvmAbiFunction
fn clone(&self) -> EvmAbiFunction
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 moreAuto Trait Implementations§
impl Freeze for EvmAbiFunction
impl RefUnwindSafe for EvmAbiFunction
impl Send for EvmAbiFunction
impl Sync for EvmAbiFunction
impl Unpin for EvmAbiFunction
impl UnwindSafe for EvmAbiFunction
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