pub struct Abi {
pub constructor: Option<Constructor>,
pub functions: BTreeMap<String, Function>,
pub events: BTreeMap<String, Event>,
pub receive: bool,
pub fallback: bool,
}Expand description
§Abi
The ABI of the generated code.
Fields§
§constructor: Option<Constructor>The constructor
functions: BTreeMap<String, Function>A list of functions and their definitions
events: BTreeMap<String, Event>A list of events and their definitions
receive: boolIf the contract defines receive logic
fallback: boolIf the contract defines fallback logic
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Abi
impl<'de> Deserialize<'de> for Abi
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
impl Eq for Abi
impl StructuralPartialEq for Abi
Auto Trait Implementations§
impl Freeze for Abi
impl RefUnwindSafe for Abi
impl Send for Abi
impl Sync for Abi
impl Unpin for Abi
impl UnsafeUnpin for Abi
impl UnwindSafe for Abi
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