Skip to main content

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.

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§

GrpcError
Derive macro for automatic gRPC status conversion
HealthCheck
Derive macro for automatic HealthCheck implementation
Obfuscate
Derive macro for automatic Obfuscate implementation
StepOutput
Derive macro for type-safe step output extraction