pub struct RoomFilter<'a> {
pub include_leave: bool,
pub account_data: RoomEventFilter<'a>,
pub timeline: RoomEventFilter<'a>,
pub ephemeral: RoomEventFilter<'a>,
pub state: RoomEventFilter<'a>,
pub not_rooms: &'a [OwnedRoomId],
pub rooms: Option<&'a [OwnedRoomId]>,
}client or server only.Expand description
Filters to be applied to room data.
Fields§
§include_leave: boolInclude rooms that the user has left in the sync.
Defaults to false.
account_data: RoomEventFilter<'a>The per user account data to include for rooms.
timeline: RoomEventFilter<'a>The message and state update events to include for rooms.
ephemeral: RoomEventFilter<'a>The events that aren’t recorded in the room history, e.g. typing and receipts, to include for rooms.
state: RoomEventFilter<'a>The state events to include for rooms.
not_rooms: &'a [OwnedRoomId]A list of room IDs to exclude.
If this list is absent then no rooms are excluded. A matching room will be excluded even if
it is listed in the ‘rooms’ filter. This filter is applied before the filters in
ephemeral, state, timeline or account_data.
rooms: Option<&'a [OwnedRoomId]>A list of room IDs to include.
If this list is absent then all rooms are included. This filter is applied before the
filters in ephemeral, state, timeline or account_data.
Implementations§
Source§impl<'a> RoomFilter<'a>
impl<'a> RoomFilter<'a>
Trait Implementations§
Source§impl<'a> CanBeEmpty for RoomFilter<'a>
impl<'a> CanBeEmpty for RoomFilter<'a>
Source§impl<'a> Clone for RoomFilter<'a>
impl<'a> Clone for RoomFilter<'a>
Source§fn clone(&self) -> RoomFilter<'a>
fn clone(&self) -> RoomFilter<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for RoomFilter<'a>
impl<'a> Debug for RoomFilter<'a>
Source§impl<'a> Default for RoomFilter<'a>
impl<'a> Default for RoomFilter<'a>
Source§fn default() -> RoomFilter<'a>
fn default() -> RoomFilter<'a>
Auto Trait Implementations§
impl<'a> Freeze for RoomFilter<'a>
impl<'a> RefUnwindSafe for RoomFilter<'a>
impl<'a> Send for RoomFilter<'a>
impl<'a> Sync for RoomFilter<'a>
impl<'a> Unpin for RoomFilter<'a>
impl<'a> UnwindSafe for RoomFilter<'a>
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
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)
clone_to_uninit)