ruwuma/src/room/topic.rs
Jimmy Cuadra 4212c9f619 Convert m.room.{aliases ,avatar ,encryption ,guest_access,
history_visibility, join_rules, member, pinned_events,
third_party_invite, tombstone, topic} to the new API.
2019-07-19 14:40:48 -07:00

16 lines
359 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: RoomTopic,
content: {
/// The topic text.
pub topic: String,
},
}
}