callback
is a marker attribute it does not generate code by itself.
callback_args_vec
is a marker attribute it does not generate code by itself.
ext_contract
takes a Rust Trait and converts it to a module with static methods.
Each of these static methods takes positional arguments defined by the Trait,
then the receiver_id, the attached deposit and the amount of gas and returns a new Promise.
init
is a marker attribute it does not generate code by itself.
This attribute macro is used to enhance the near_bindgen macro.
It is used to add Borsh and Serde derives for serialization and deserialization.
It also adds BorshSchema
and JsonSchema
if needed
This attribute macro is used on a struct and its implementations
to generate the necessary code to expose pub
methods from the contract as well
as generating the glue code to be a valid NEAR contract.
result_serializer
is a marker attribute it does not generate code by itself.
serializer
is a marker attribute it does not generate code by itself.