#[derive(EntityToModels)]
{
// Attributes available to this derive:
#[crudcrate]
}
Expand description
Generates complete CRUD API structures from Sea-ORM entities.
Creates API struct, List/Response models, and CRUDResource implementation.
Supports custom functions, joins, filtering, sorting, and fulltext search.
Key attributes: api_struct, generate_router, exclude(), join(), on_create/update.
See crate documentation for full attribute reference and examples.
ยงPanics
This function will panic in the following cases:
- When deprecated syntax is used (e.g.,
create_model = falseinstead ofexclude(create)) - When there are cyclic join dependencies without explicit depth specification
- When required Sea-ORM relation enums are missing for join fields