Re-exports§
pub use rest_sql as rsql;
Modules§
Macros§
- cqrs_
async_ trait - Use this macro instead of
#[async_trait::async_trait]for WASM compatibility. - define_
domain_ errors - Macro to define domain-specific error codes with minimal boilerplate.
Structs§
- Cqrs
Command Engine - The
CqrsCommandEnginestruct is a Command Query Responsibility Segregation (CQRS) engine designed to handle commands and communication with an underlying event store and various dispatchers. It acts as the main entry point for command processing and encapsulates the behavior specific to an aggregate. - Cqrs
Context - Cqrs
Error - Unified error for API responses.
- Cqrs
Error Data - Internal data for
CqrsError. Access fields viaDerefonCqrsError. - Default
IdGenerator - Default ID generator that produces a UUID v4 via
CqrsContext::next_uuid(). - Event
Envelope - Snapshot
Enums§
- Generic
Error Code - Generic error codes for common scenarios.
- Infrastructure
Error Code - Error codes for infrastructure/technical errors.
Traits§
- Aggregate
- Aggregate
IdGenerator - Trait for generating aggregate IDs during creation.
- Command
Handler - Cqrs
Error Code - Trait that all domain error codes must implement.
- Dispatcher
- Event
- Event
Store - Maybe
Send - Maybe
Sync - View
- View
Elements
Type Aliases§
- Aggregate
Error Deprecated - DynEvent
Store