genies_ddd 1.8.0

整合DDD与Dapr 的 dd 库
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * @Author: tzw
 * @Date: 2021-11-29 22:12:35
 * @LastEditors: tzw
 * @LastEditTime: 2022-01-17 01:49:34
 */


pub trait DomainEvent:Send {
    /// 领域事件 版本
    fn event_type_version(&self) -> String;
    /// 领域事件 类型
    fn event_type(&self) -> String;
    /// 领域事件 来源
    fn event_source(&self) -> String;
    /// 领域事件 json 字符串
    fn json(&self) -> String;
}