Struct matrix_sdk::RoomInfo [−][src]
pub struct RoomInfo {
pub room_id: Arc<RoomId>,
pub room_type: RoomType,
pub notification_counts: UnreadNotificationsCount,
pub summary: RoomSummary,
pub members_synced: bool,
pub last_prev_batch: Option<String>,
pub base_info: BaseRoomInfo,
}
Expand description
The underlying pure data structure for joined and left rooms.
Holds all the info needed to persist a room into the state store.
Fields
room_id: Arc<RoomId>
The unique room id of the room.
room_type: RoomType
The type of the room.
notification_counts: UnreadNotificationsCount
The unread notifications counts.
summary: RoomSummary
The summary of this room.
members_synced: bool
Flag remembering if the room members are synced.
last_prev_batch: Option<String>
The prev batch of this room we received during the last sync.
base_info: BaseRoomInfo
Base room info which holds some basic event contents important for the room state.
Implementations
The number of active members (invited + joined) in the room.
The return value is saturated at u64::MAX
.
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<RoomInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<RoomInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for RoomInfo
impl UnwindSafe for RoomInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more