Skip to main content

Crate cqrs_rust_lib

Crate cqrs_rust_lib 

Source

Re-exports§

pub use rest_sql as rsql;

Modules§

dispatchers
es
prelude
read

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§

CqrsCommandEngine
The CqrsCommandEngine struct 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.
CqrsContext
CqrsError
Unified error for API responses.
CqrsErrorData
Internal data for CqrsError. Access fields via Deref on CqrsError.
DefaultIdGenerator
Default ID generator that produces a UUID v4 via CqrsContext::next_uuid().
EventEnvelope
Snapshot

Enums§

GenericErrorCode
Generic error codes for common scenarios.
InfrastructureErrorCode
Error codes for infrastructure/technical errors.

Traits§

Aggregate
AggregateIdGenerator
Trait for generating aggregate IDs during creation.
CommandHandler
CqrsErrorCode
Trait that all domain error codes must implement.
Dispatcher
Event
EventStore
MaybeSend
MaybeSync
View
ViewElements

Type Aliases§

AggregateErrorDeprecated
DynEventStore