Available on crate feature
__macro-docs only.Expand description
#[near] and #[near_bindgen] documentation module
This is not a real module; here we document the attributes that #[near]
and #[near_bindgen] macro use.
near_bindgen and near_sdk share most of the attributes:
initpayableprivatedeny_unknown_argumentshandle_resultcallback_unwrapcallback_resultcallback_vecevent_jsoncontract_metadataserializerresult_serializer
Following attributes are only part of the near macro:
serializerscontract_state
Functionsยง
- callback_
result - See
near_sdk::near #[callback_result] - callback_
unwrap - See
near_sdk::near #[callback_unwrap] - callback_
vec - See
near_sdk::near #[callback_vec] - contract_
metadata - See
near_sdk::near #[near(contract_metadata(...))] - contract_
state - See
near_sdk::near #[near(contract_state)] - deny_
unknown_ arguments - See
near_sdk::near #[deny_unknown_arguments] - event_
json - See
near_sdk::near #[near(event_json(...))] - handle_
result - See
near_sdk::near #[handle_result] - init
- See
near_sdk::near #[init] - payable
- See
near_sdk::near #[payable] - private
- See
near_sdk::near #[private] - result_
serializer - See
near_sdk::near #[result_serializer] - serializer
- See
near_sdk::near #[serializer(...)] - serializers
- See
near_sdk::near #[near(serializers=[...])]