pub struct ListFilters {
pub is_invite: Option<bool>,
pub not_room_types: Vec<RoomTypeFilter>,
}
Available on (crate features
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§
§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<RoomTypeFilter>
Only list rooms that are not of these create-types, or all.
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
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ListFilters> for SyncRequestListFilters
Available on crate feature unstable-msc3575
only.
impl From<ListFilters> for SyncRequestListFilters
Available on crate feature
unstable-msc3575
only.Source§fn from(value: ListFilters) -> Self
fn from(value: ListFilters) -> Self
Converts to this type from the input type.
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
Mutably borrows from an owned value. Read more