Struct ruma_client_api::filter::IncomingRoomFilter
source · [−]#[non_exhaustive]pub struct IncomingRoomFilter {
pub include_leave: bool,
pub account_data: IncomingRoomEventFilter,
pub timeline: IncomingRoomEventFilter,
pub ephemeral: IncomingRoomEventFilter,
pub state: IncomingRoomEventFilter,
pub not_rooms: Vec<OwnedRoomId>,
pub rooms: Option<Vec<OwnedRoomId>>,
}
Expand description
‘Incoming’ variant of RoomFilter.
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: bool
Include rooms that the user has left in the sync.
Defaults to false
.
account_data: IncomingRoomEventFilter
The per user account data to include for rooms.
timeline: IncomingRoomEventFilter
The message and state update events to include for rooms.
ephemeral: IncomingRoomEventFilter
The events that aren’t recorded in the room history, e.g. typing and receipts, to include for rooms.
state: IncomingRoomEventFilter
The state events to include for rooms.
not_rooms: Vec<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<Vec<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
Trait Implementations
sourceimpl CanBeEmpty for IncomingRoomFilter
impl CanBeEmpty for IncomingRoomFilter
sourceimpl Clone for IncomingRoomFilter
impl Clone for IncomingRoomFilter
sourcefn clone(&self) -> IncomingRoomFilter
fn clone(&self) -> IncomingRoomFilter
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 Debug for IncomingRoomFilter
impl Debug for IncomingRoomFilter
sourceimpl Default for IncomingRoomFilter
impl Default for IncomingRoomFilter
sourcefn default() -> IncomingRoomFilter
fn default() -> IncomingRoomFilter
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for IncomingRoomFilter
impl<'de> Deserialize<'de> for IncomingRoomFilter
sourcefn 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
sourceimpl Serialize for IncomingRoomFilter
impl Serialize for IncomingRoomFilter
Auto Trait Implementations
impl RefUnwindSafe for IncomingRoomFilter
impl Send for IncomingRoomFilter
impl Sync for IncomingRoomFilter
impl Unpin for IncomingRoomFilter
impl UnwindSafe for IncomingRoomFilter
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