Attribute Macro spacetimedb::spacetimedb

source ·
#[spacetimedb]
Expand description

Defines the #[spacetimedb(input)] procedural attribute.

The macro takes this input, which defines what the attribute does, and it is structured roughly like so:

input = table | init | connect | disconnect | migrate
      | reducer [, repeat = Duration]
      | index(btree | hash [, name = string] [, field_name:ident]*)

For description of the field attributes on #[spacetimedb(table)] structs, see TableType.