#[non_exhaustive]pub struct ListFilters {
pub is_dm: Option<bool>,
pub is_encrypted: Option<bool>,
pub is_invite: Option<bool>,
pub room_types: Vec<RoomTypeFilter>,
pub not_room_types: Vec<RoomTypeFilter>,
}client or server) and crate feature unstable-msc4186 only.Expand description
A sliding sync list request filters (see List::filters).
All fields are applied with AND operators. The absence of fields
implies no filter on that criteria: it does NOT imply false.
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.is_dm: Option<bool>Whether to return only DM rooms (as determined by the m.direct account data event),
only non-DM rooms, or both.
is_encrypted: Option<bool>Whether to return only encrypted rooms (as determined by the existence of an
m.room.encryption state event), only unencrypted rooms, or both.
is_invite: Option<bool>Whether to return only invited rooms, only joined rooms, or both.
room_types: Vec<RoomTypeFilter>Only list rooms with these create-types, or all.
If a room type is specified in both room_types and not_room_types,
not_room_types wins and the corresponding rooms are not included.
not_room_types: Vec<RoomTypeFilter>Only list rooms that are not of these create-types, or all.
If a room type is specified in both room_types and not_room_types,
not_room_types wins and the corresponding rooms are not included.
Trait Implementations§
Source§impl Clone for ListFilters
impl Clone for ListFilters
Source§fn clone(&self) -> ListFilters
fn clone(&self) -> ListFilters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ListFilters
impl Debug for ListFilters
Source§impl Default for ListFilters
impl Default for ListFilters
Source§fn default() -> ListFilters
fn default() -> ListFilters
Source§impl<'de> Deserialize<'de> for ListFilters
impl<'de> Deserialize<'de> for ListFilters
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>,
Auto Trait Implementations§
impl Freeze for ListFilters
impl RefUnwindSafe for ListFilters
impl Send for ListFilters
impl Sync for ListFilters
impl Unpin for ListFilters
impl UnsafeUnpin for ListFilters
impl UnwindSafe for ListFilters
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§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more