Struct matrix_sdk_base::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: RoomTypeThe type of the room.
notification_counts: UnreadNotificationsCountThe unread notifications counts.
summary: RoomSummaryThe summary of this room.
members_synced: boolFlag 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: BaseRoomInfoBase 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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for RoomInfoimpl UnwindSafe for RoomInfoBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self