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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.