pub trait QueryHandler {
type Query;
type Result;
type Error;
// Required method
fn handle(&self, query: Self::Query) -> Result<Self::Result, Self::Error>;
}Expand description
English: Exposes core 0.4’s domain, persistence, and event-workflow API.
日本語: コア 0.4 のドメイン、永続化、イベント処理 API を公開します。 English: Re-exports synchronous and asynchronous CQRS handlers, aggregate creators, and lifecycle APIs.
日本語: 同期・非同期の CQRS ハンドラー、集約作成器、ライフサイクル API を再エクスポートします。 English: Re-exports synchronous command and query handlers, aggregate creators, lifecycle callbacks, and the context coordinating aggregate saves and event dispatch.
日本語: 同期のコマンド・クエリハンドラー、集約作成器、ライフサイクルコールバック、 集約保存とイベント配信を調整するコンテキストを再エクスポートします。 English: Handles a query without requiring aggregate lifecycle operations.
日本語: 集約ライフサイクル操作を伴わずにクエリを処理します。
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".