1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
//! 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: "m.room.avatar", 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, }, } }