#[non_exhaustive]pub struct SyncRequestList {
pub slow_get_all_rooms: bool,
pub ranges: Vec<(UInt, UInt)>,
pub sort: Vec<String>,
pub room_details: RoomDetailsConfig,
pub include_old_rooms: Option<IncludeOldRooms>,
pub include_heroes: Option<bool>,
pub filters: Option<SyncRequestListFilters>,
pub bump_event_types: Vec<TimelineEventType>,
}
client
or server
) and crate feature unstable-msc3575
only.Expand description
Sliding Sync Request for each list.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.slow_get_all_rooms: bool
Put this list into the all-rooms-mode.
Settings this to true will inform the server that, no matter how slow
that might be, the clients wants all rooms the filters apply to. When operating
in this mode, ranges
and sort
will be ignored there will be no movement operations
(DELETE
followed by INSERT
) as the client has the entire list and can work out whatever
sort order they wish. There will still be DELETE
and INSERT
operations when rooms are
left or joined respectively. In addition, there will be an initial SYNC
operation to let
the client know which rooms in the rooms object were from this list.
ranges: Vec<(UInt, UInt)>
The ranges of rooms we’re interested in.
sort: Vec<String>
The sort ordering applied to this list of rooms. Sticky.
room_details: RoomDetailsConfig
The details to be included per room
include_old_rooms: Option<IncludeOldRooms>
If tombstoned rooms should be returned and if so, with what information attached.
include_heroes: Option<bool>
Request a stripped variant of membership events for the users used to calculate the room name.
Sticky.
filters: Option<SyncRequestListFilters>
Filters to apply to the list before sorting. Sticky.
bump_event_types: Vec<TimelineEventType>
An allow-list of event types which should be considered recent activity when sorting
by_recency
. By omitting event types from this field, clients can ensure that
uninteresting events (e.g. a profil rename) do not cause a room to jump to the top of its
list(s). Empty or omitted bump_event_types
have no effect; all events in a room will be
considered recent activity.
NB. Changes to bump_event_types will NOT cause the room list to be reordered; it will only affect the ordering of rooms due to future updates.
Sticky.
Trait Implementations§
Source§impl Clone for SyncRequestList
impl Clone for SyncRequestList
Source§fn clone(&self) -> SyncRequestList
fn clone(&self) -> SyncRequestList
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SyncRequestList
impl Debug for SyncRequestList
Source§impl Default for SyncRequestList
impl Default for SyncRequestList
Source§fn default() -> SyncRequestList
fn default() -> SyncRequestList
Source§impl<'de> Deserialize<'de> for SyncRequestList
impl<'de> Deserialize<'de> for SyncRequestList
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>,
Source§impl From<List> for SyncRequestList
Available on crate feature unstable-msc4186
only.
impl From<List> for SyncRequestList
unstable-msc4186
only.