#[non_exhaustive]pub struct FullRoomData {Show 13 fields
pub name: JsOption<String>,
pub avatar: JsOption<OwnedMxcUri>,
pub heroes: Option<Vec<Hero>>,
pub is_dm: Option<bool>,
pub initial: bool,
pub expanded_timeline: bool,
pub required_state: Vec<RequiredStateEntry>,
pub timeline: Vec<Raw<AnySyncTimelineEvent>>,
pub prev_batch: Option<String>,
pub limited: bool,
pub num_live: Option<UInt>,
pub joined_count: Option<UInt>,
pub invited_count: Option<UInt>,
}unstable-msc4186 and (crate features client or server) only.Expand description
The data of a room the user is or has been joined to (see RoomData::Full).
When FullRoomData::initial is false, an omitted field means that it is unchanged.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: JsOption<String>The name as calculated by the server.
Null if the room name was removed.
avatar: JsOption<OwnedMxcUri>The avatar.
Null if the room avatar was removed.
heroes: Option<Vec<Hero>>Heroes of the room, if the room has no name.
is_dm: Option<bool>Whether it is a direct room.
initial: boolWhether it is the first time this room is sent on this connection, or the client should replace all its room data with what is returned.
expanded_timeline: boolWhether more historic events are returned because the timeline limit increased.
required_state: Vec<RequiredStateEntry>Changes in the current state of the room.
timeline: Vec<Raw<AnySyncTimelineEvent>>The latest events in the room.
prev_batch: Option<String>The prev_batch allowing you to paginate through the messages
before the given ones.
limited: boolWhether there are more events since the previous sync than were included in the timeline.
num_live: Option<UInt>The number of timeline events which have just occurred and are not historical.
joined_count: Option<UInt>The number of users with membership of join, including the
client’s own user ID.
invited_count: Option<UInt>The number of users with membership of invite.