#[derive(Index)]
{
// Attributes available to this derive:
#[index]
}
Expand description
Derives the Index trait for a struct where each field is itself an Index.
This macro generates an implementation of composable_indexes::Index for a struct
where each field is itself an Index. This allows you to compose multiple indexes together
without manually writing the Index trait implementation.
ยงRequired Attribute
The #[index(Type)] attribute must be specified to indicate the type being indexed.