ruwuma/src/room/topic.rs
Ragotzy.devin 8ea971b082
Derive Serialize in ruma_events!, use json EventType string for event_type field
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2020-03-24 14:25:50 +01:00

16 lines
364 B
Rust

//! Types for the *m.room.topic* event.
use ruma_events_macros::ruma_event;
ruma_event! {
/// A topic is a short message detailing what is currently being discussed in the room.
TopicEvent {
kind: StateEvent,
event_type: "m.room.topic",
content: {
/// The topic text.
pub topic: String,
},
}
}