Expand description
AllFrame Procedural Macros
This crate provides compile-time code generation for AllFrame, including dependency injection, OpenAPI schema generation, and more.
Attribute Macros§
- api_
handler - API handler with auto OpenAPI generation
- command
- Marks a struct as a Command (CQRS write operation)
- command_
handler - Marks a function as a Command Handler
- di_
container - Compile-time dependency injection container
- domain
- Marks a type as part of the Domain layer (Layer 1)
- event
- Marks an enum or struct as an Event
- handler
- Marks a type as part of the Handler layer (Layer 4)
- query
- Marks a struct as a Query (CQRS read operation)
- query_
handler - Marks a function as a Query Handler
- repository
- Marks a type as part of the Repository layer (Layer 2)
- traced
- Marks a function to be automatically traced with OpenTelemetry
- use_
case - Marks a type as part of the Use Case layer (Layer 3)
Derive Macros§
- Grpc
Error - Derive macro for automatic gRPC status conversion