ruwuma/src/room/avatar.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

25 lines
640 B
Rust

//! Types for the *m.room.avatar* event.
use ruma_events_macros::ruma_event;
use super::ImageInfo;
ruma_event! {
/// A picture that is associated with the room.
///
/// This can be displayed alongside the room information.
AvatarEvent {
kind: StateEvent,
event_type: RoomAvatar,
content: {
/// Information about the avatar image.
#[serde(skip_serializing_if = "Option::is_none")]
pub info: Option<ImageInfo>,
/// Information about the avatar thumbnail image.
/// URL of the avatar image.
pub url: String,
},
}
}