#[non_exhaustive]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]>,
}Expand description
Filters to be applied to room data.
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.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
sourceimpl<'a> RoomFilter<'a>
 
impl<'a> RoomFilter<'a>
sourcepub fn empty() -> RoomFilter<'a>
 
pub fn empty() -> RoomFilter<'a>
Creates an empty RoomFilter.
You can also use the Default implementation.
sourcepub fn ignore_all() -> RoomFilter<'a>
 
pub fn ignore_all() -> RoomFilter<'a>
Creates a new RoomFilter that can be used to ignore all room events (of any type).
Trait Implementations
sourceimpl<'a> CanBeEmpty for RoomFilter<'a>
 
impl<'a> CanBeEmpty for RoomFilter<'a>
sourceimpl<'a> Clone for RoomFilter<'a>
 
impl<'a> Clone for RoomFilter<'a>
sourcefn clone(&self) -> RoomFilter<'a>
 
fn clone(&self) -> RoomFilter<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> Debug for RoomFilter<'a>
 
impl<'a> Debug for RoomFilter<'a>
sourceimpl<'a> Default for RoomFilter<'a>
 
impl<'a> Default for RoomFilter<'a>
sourcefn default() -> RoomFilter<'a>
 
fn default() -> RoomFilter<'a>
Returns the “default value” for a type. Read more
sourceimpl<'a> Serialize for RoomFilter<'a>
 
impl<'a> Serialize for RoomFilter<'a>
sourcefn 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, 
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
 
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
 
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
    S: Into<Dispatch>, 
 
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
    S: Into<Dispatch>, 
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
 
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
