Expand description
AllFrame Procedural Macros
This crate provides compile-time code generation for AllFrame, including dependency injection, OpenAPI schema generation, and more.
Macros§
- extract_
output - Extract step output with type safety and error handling
Attribute Macros§
- api_
handler - API handler with auto OpenAPI generation
- circuit_
breaker - Attribute macro for circuit breaker pattern
- 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
- rate_
limited - Attribute macro for rate limiting
- repository
- Marks a type as part of the Repository layer (Layer 2)
- retry
- Attribute macro for automatic retry with exponential backoff
- saga
- Marks a struct as a saga container with automatic Saga trait implementation
- saga_
step - Marks a struct as a saga step with automatic Debug and SagaStep trait implementation
- saga_
workflow - Defines the workflow for a saga using an enum
- 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
- Health
Check - Derive macro for automatic HealthCheck implementation
- Obfuscate
- Derive macro for automatic Obfuscate implementation
- Step
Output - Derive macro for type-safe step output extraction