Struct ruma_client_api::r0::sync::sync_events::JoinedRoom[][src]

#[non_exhaustive]
pub struct JoinedRoom { pub summary: RoomSummary, pub unread_notifications: UnreadNotificationsCount, pub timeline: Timeline, pub state: State, pub account_data: AccountData, pub ephemeral: Ephemeral, }

Updates to joined rooms.

Fields (Non-exhaustive)

Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct {{ .. }} syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
summary: RoomSummary

Information about the room which clients may need to correctly render it to users.

unread_notifications: UnreadNotificationsCount

Counts of unread notifications for this room.

timeline: Timeline

The timeline of messages and state changes in the room.

state: State

Updates to the state, between the time indicated by the since parameter, and the start of the timeline (or all state up to the start of the timeline, if since is not given, or full_state is true).

account_data: AccountData

The private data that this user has attached to this room.

ephemeral: Ephemeral

The ephemeral events in the room that aren’t recorded in the timeline or state of the room. e.g. typing.

Implementations

impl JoinedRoom[src]

pub fn new() -> Self[src]

Creates an empty JoinedRoom.

pub fn is_empty(&self) -> bool[src]

Returns true if there are no updates in the room.

Trait Implementations

impl Clone for JoinedRoom[src]

impl Debug for JoinedRoom[src]

impl Default for JoinedRoom[src]

impl<'de> Deserialize<'de> for JoinedRoom[src]

impl Serialize for JoinedRoom[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.