| 14 | |
| 15 | #[derive(Serialize, Deserialize, Debug, Clone)] |
| 16 | pub struct Event { |
| 17 | #[serde(with = "ts_milliseconds")] |
| 18 | pub time: DateTime<Utc>, |
| 19 | pub payload: EventPayload, |
| 20 | } |
| 21 | |
| 22 | impl Event { |
| 23 | pub fn at(time: DateTime<Utc>, payload: EventPayload) -> Self { |
no outgoing calls
no test coverage detected