pub trait DomainService<Input> {
type Output;
type Error;
// Required method
fn execute(&self, input: Input) -> Result<Self::Output, Self::Error>;
}Expand description
English: Exposes core 0.4’s domain, persistence, and event-workflow API.
日本語: コア 0.4 のドメイン、永続化、イベント処理 API を公開します。 English: Exposes typed domain operations and borrowed-context policy checks.
日本語: 型付きのドメイン操作と、コンテキストを借用するポリシー確認を公開します。 English: Domain operation with owned input and implementation-selected output and error types. It supplies no transaction or retry logic. The shared receiver permits interior state; neither purity nor concurrent use is required by the trait.
日本語: 所有する入力と、実装が選ぶ出力型・エラー型を持つドメイン操作です。 トランザクションや再試行処理は提供しません。共有参照でも内部状態を持てるため、 このトレイトは純粋性や並行利用を要求しません。
Required Associated Types§
Required Methods§
Sourcefn execute(&self, input: Input) -> Result<Self::Output, Self::Error>
fn execute(&self, input: Input) -> Result<Self::Output, Self::Error>
English: Consumes input to perform the operation, returning its output or error.
Implementations define side effects on success and failure and document any panic conditions.
日本語: input を消費して操作を実行し、出力またはエラーを返します。
成功・失敗時の副作用とパニックの条件は各実装が定め、文書化します。
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".