Crate concordium_std_derive[−][src]
Attribute Macros
concordium_cfg_test | Sets the cfg for testing targeting either Wasm and native. |
concordium_test | Derive the appropriate export for an annotated test function, when feature
“wasm-test” is enabled, otherwise behaves like |
contract_state | Marks a type as the contract state. Currently only used for generating the
schema of the contract state. If the feature |
init | Derive the appropriate export for an annotated init function. |
receive | Derive the appropriate export for an annotated receive function. |
Derive Macros
Deserial | Derive the Deserial trait. See the documentation of |
Reject | Derive the conversion of enums that represent error types into the Reject struct which can be used as the error type of init and receive functions. Creating custom enums for error types can provide meaningful error messages to the user of the smart contract. |
SchemaType | Derive the |
Serial | Derive the Serial trait for the type. |
Serialize | A helper macro to derive both the Serial and Deserial traits.
|