pub trait VersionedEvent {
// Required method
fn identity() -> EventIdentity;
}Expand description
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§
Sourcefn identity() -> EventIdentity
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".