pub struct Abi {
pub constructor: Option<Constructor>,
pub functions: BTreeMap<String, Function>,
pub events: BTreeMap<String, Event>,
pub errors: BTreeMap<String, Error>,
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
errors: BTreeMap<String, Error>A list of errors 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
Source§impl FromWasmAbi for Abiwhere
Self: DeserializeOwned,
impl FromWasmAbi for Abiwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &Abi
impl IntoWasmAbi for &Abi
Source§impl IntoWasmAbi for Abi
impl IntoWasmAbi for Abi
Source§impl OptionFromWasmAbi for Abiwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for Abiwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for Abi
impl OptionIntoWasmAbi for Abi
Source§impl RefFromWasmAbi for Abiwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for Abiwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.impl StructuralPartialEq for Abi
Source§impl Tsify for Abi
impl Tsify for Abi
const DECL: &'static str = "/**\n * #### Abi\n *\n * The ABI of the generated code.\n */\nexport interface Abi {\n /**\n * The constructor\n */\n constructor: Constructor | undefined;\n /**\n * A list of functions and their definitions\n */\n functions: Map<string, Function>;\n /**\n * A list of events and their definitions\n */\n events: Map<string, Event>;\n /**\n * A list of errors and their definitions\n */\n errors: Map<string, Error>;\n /**\n * If the contract defines receive logic\n */\n receive: boolean;\n /**\n * If the contract defines fallback logic\n */\n fallback: boolean;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for Abiwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for Abiwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for Abi
impl VectorIntoWasmAbi for Abi
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribeVector for Abi
impl WasmDescribeVector 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.Source§impl<S, T> Upcast<T> for S
impl<S, T> Upcast<T> for S
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 104 bytes