Crate allframe_macros

Crate allframe_macros 

Source
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
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
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§

GrpcError
Derive macro for automatic gRPC status conversion
HealthCheck
Derive macro for automatic HealthCheck implementation
Obfuscate
Derive macro for automatic Obfuscate implementation