MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / Event

Class Event

crates/hyperqueue/src/server/event/mod.rs:16–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

send_eventMethod · 0.70
stream_history_eventsFunction · 0.50
stream_eventsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected