#[derive(Tracked)]
{
// Attributes available to this derive:
#[id]
}
Expand description
Allow a type to be tracked by the database.
This type must also implement Eq
, and by extension, PartialEq
.
A single field must be marked with #[id]
, which will uniquely identify an instance of this type output
by a query. Different query functions may output equal IDs, but they will not interfere with each other. The ID must
implement Eq
, Hash
, and Clone
.