Struct matrix_sdk_base::sliding_sync::http::simplified_msc3575::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<ListFilters, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ListFilters, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl From<ListFilters> for SyncRequestListFilters
impl From<ListFilters> for SyncRequestListFilters
source§fn from(value: ListFilters) -> SyncRequestListFilters
fn from(value: ListFilters) -> SyncRequestListFilters
source§impl Serialize for ListFilters
impl Serialize for ListFilters
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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
)source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more