Generate interface::Serve
trait implementation for any impls
#5
Labels
enhancement
New feature or request
interface::Serve
trait implementation for any impls
#5
The near sdk's
#[near_bindgen]
allows generating code for "impl" blocks, whether they are direct impls on structures, or impls of traits into structures.The objective of the generated code is to:
The
#[contract]
proc-macro should behave similarly, by mostly doing points 2-4.Args
) and also a structure to represent a type that can be specialized into a method call (Serve
), both of those assuming that generics are present.See more in Public items #14.
See more in Generate macro for extern "C" function generation #12.
In overall,
#[contract]
should be applicable for:#[contract]
trait definition#[contract]
trait definitionThe text was updated successfully, but these errors were encountered: