Skip to main content

VersionedEvent

Trait VersionedEvent 

Source
pub trait VersionedEvent {
    // Required method
    fn identity() -> EventIdentity;
}
Expand description

English: Exposes core 0.4’s domain, persistence, and event-workflow API.

日本語: コア 0.4 のドメイン、永続化、イベント処理 API を公開します。 English: Exposes event schema identities and insertion-ordered, fallible upcasting stages.

日本語: イベントのスキーマ識別情報と、追加順の失敗し得る変換段階を公開します。 English: Type-level event identity independent of any particular event instance. No crate::DomainEvent bound is required, and the trait does not validate the returned identity.

日本語: 個々のイベントインスタンスとは独立した、型単位のイベント識別情報です。 crate::DomainEvent の境界は要求せず、返された識別情報も検証しません。

Required Methods§

Source

fn identity() -> EventIdentity

English: Returns the name and schema version chosen for this event type. Implementations define the mapping; no instance data is passed to this function.

日本語: このイベント型に選んだ名前とスキーマバージョンを返します。 対応付けは実装が定め、この関数にはインスタンスのデータを渡しません。

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§