Attribute Macro concordium_std::contract_state[][src]

#[contract_state]
Expand description

Marks a type as the contract state. Currently only used for generating the schema of the contract state. If the feature build-schema is not enabled this has no effect.

Example

#[contract_state(contract = "my_contract")]
#[derive(SchemaType)]
struct MyContractState {
     ...
}