diff --git a/crates/ruma-events/tests/ui/04-event-sanity-check.rs b/crates/ruma-events/tests/ui/04-event-sanity-check.rs index 580ff1a7..337eb1cc 100644 --- a/crates/ruma-events/tests/ui/04-event-sanity-check.rs +++ b/crates/ruma-events/tests/ui/04-event-sanity-check.rs @@ -2,13 +2,19 @@ // https://github.com/rust-lang/rust/issues/55779 extern crate serde; +use ruma_common::MilliSecondsSinceUnixEpoch; use ruma_events::{StateEventContent, Unsigned}; use ruma_events_macros::Event; +use ruma_identifiers::{EventId, RoomId, UserId}; /// State event. #[derive(Clone, Debug, Event)] pub struct StateEvent { pub content: C, + pub event_id: EventId, + pub sender: UserId, + pub origin_server_ts: MilliSecondsSinceUnixEpoch, + pub room_id: RoomId, pub state_key: String, pub prev_content: Option, pub unsigned: Unsigned,