Struct near_abi::AbiFunction
source · pub struct AbiFunction {
pub name: String,
pub doc: Option<String>,
pub kind: AbiFunctionKind,
pub modifiers: Vec<AbiFunctionModifier>,
pub params: AbiParameters,
pub callbacks: Vec<AbiType>,
pub callbacks_vec: Option<AbiType>,
pub result: Option<AbiType>,
}
Expand description
ABI of a single function.
Fields§
§name: String
§doc: Option<String>
Human-readable documentation parsed from the source file.
kind: AbiFunctionKind
Function kind that regulates whether the function has to be invoked from a transaction.
modifiers: Vec<AbiFunctionModifier>
List of modifiers affecting the function.
params: AbiParameters
Type identifiers of the function parameters.
callbacks: Vec<AbiType>
Type identifiers of the callbacks of the function.
callbacks_vec: Option<AbiType>
Type identifier of the vararg callbacks of the function.
result: Option<AbiType>
Return type identifier.
Trait Implementations§
source§impl Clone for AbiFunction
impl Clone for AbiFunction
source§fn clone(&self) -> AbiFunction
fn clone(&self) -> AbiFunction
Returns a copy 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 moresource§impl Debug for AbiFunction
impl Debug for AbiFunction
source§impl<'de> Deserialize<'de> for AbiFunction
impl<'de> Deserialize<'de> for AbiFunction
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 JsonSchema for AbiFunction
impl JsonSchema for AbiFunction
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for AbiFunction
impl PartialEq for AbiFunction
source§fn eq(&self, other: &AbiFunction) -> bool
fn eq(&self, other: &AbiFunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AbiFunction
impl Serialize for AbiFunction
impl StructuralPartialEq for AbiFunction
Auto Trait Implementations§
impl RefUnwindSafe for AbiFunction
impl Send for AbiFunction
impl Sync for AbiFunction
impl Unpin for AbiFunction
impl UnwindSafe for AbiFunction
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