Struct ruma_client_api::sync::sync_events::v5::request::ListFilters
source · #[non_exhaustive]pub struct ListFilters {
pub is_invite: Option<bool>,
pub not_room_types: Vec<String>,
}
Expand description
Filter for a sliding sync list, set at request.
All fields are applied with AND operators, hence if is_dm
is true
and is_encrypted
is
true
then only encrypted DM rooms will be returned. The absence of fields implies no
filter on that criteria: it does NOT imply false
.
Filters are considered sticky, meaning that the filter only has to be provided once and their parameters ‘sticks’ for future requests until a new filter overwrites them.
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_invite: Option<bool>
Whether to return invited Rooms, only joined rooms or both.
Flag which only returns rooms the user is currently invited to. If unset, both invited and joined rooms are returned. If false, no invited rooms are returned. If true, only invited rooms are returned.
not_room_types: Vec<String>
Only list rooms that are not of these create-types, or all.
Same as “room_types” but inverted. This can be used to filter out spaces from the room list.
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>,
source§impl From<ListFilters> for SyncRequestListFilters
impl From<ListFilters> for SyncRequestListFilters
source§fn from(value: ListFilters) -> Self
fn from(value: ListFilters) -> Self
Auto Trait Implementations§
impl Freeze for ListFilters
impl RefUnwindSafe for ListFilters
impl Send for ListFilters
impl Sync for ListFilters
impl Unpin 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)