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

GrpcError
Derive macro for automatic gRPC status conversion