25 lines
638 B
Rust
25 lines
638 B
Rust
// Required, probably until Rust 1.57
|
|
// https://github.com/rust-lang/rust/issues/55779
|
|
#[allow(unused_extern_crates)]
|
|
extern crate serde;
|
|
|
|
use ruma_common::{
|
|
events::{StateEventContent, StateUnsigned},
|
|
EventId, MilliSecondsSinceUnixEpoch, RoomId, UserId,
|
|
};
|
|
use ruma_macros::Event;
|
|
|
|
/// State event.
|
|
#[derive(Clone, Debug, Event)]
|
|
pub struct OriginalStateEvent<C: StateEventContent> {
|
|
pub content: C,
|
|
pub event_id: Box<EventId>,
|
|
pub sender: Box<UserId>,
|
|
pub origin_server_ts: MilliSecondsSinceUnixEpoch,
|
|
pub room_id: Box<RoomId>,
|
|
pub state_key: String,
|
|
pub unsigned: StateUnsigned<C>,
|
|
}
|
|
|
|
fn main() {}
|