pub struct SlidingSyncRoom {
pub name: Option<String>,
pub initial: Option<bool>,
pub is_dm: Option<bool>,
pub invite_state: Vec<Raw<AnyStrippedStateEvent>>,
pub unread_notifications: UnreadNotificationsCount,
pub timeline: Vec<Raw<AnySyncTimelineEvent>>,
pub required_state: Vec<Raw<AnySyncStateEvent>>,
pub prev_batch: Option<String>,
}Available on (crate features
client or server) and crate feature unstable-msc3575 only.Expand description
Updates to joined rooms.
Fields§
§name: Option<String>The name of the room as calculated by the server.
initial: Option<bool>Was this an initial response.
is_dm: Option<bool>This is a direct message.
invite_state: Vec<Raw<AnyStrippedStateEvent>>This is not-yet-accepted invite, with the following sync state events the room must be considered in invite state as long as the Option is not None even if there are no state events.
unread_notifications: UnreadNotificationsCountCounts of unread notifications for this room.
timeline: Vec<Raw<AnySyncTimelineEvent>>The timeline of messages and state changes in the room.
required_state: Vec<Raw<AnySyncStateEvent>>Updates to the state at the beginning of the timeline.
A list of state events.
prev_batch: Option<String>The prev_batch allowing you to paginate through the messages before the given ones.
Implementations§
Trait Implementations§
Source§impl Clone for SlidingSyncRoom
impl Clone for SlidingSyncRoom
Source§fn clone(&self) -> SlidingSyncRoom
fn clone(&self) -> SlidingSyncRoom
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SlidingSyncRoom
impl Debug for SlidingSyncRoom
Source§impl Default for SlidingSyncRoom
impl Default for SlidingSyncRoom
Source§fn default() -> SlidingSyncRoom
fn default() -> SlidingSyncRoom
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SlidingSyncRoom
impl<'de> Deserialize<'de> for SlidingSyncRoom
Source§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 Freeze for SlidingSyncRoom
impl RefUnwindSafe for SlidingSyncRoom
impl Send for SlidingSyncRoom
impl Sync for SlidingSyncRoom
impl Unpin for SlidingSyncRoom
impl UnwindSafe for SlidingSyncRoom
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)