pub struct EventFilter<I> {
pub kinds: Vec<EventKind>,
pub group_ids: Option<Vec<Vec<u8>>>,
pub dm_identifiers: Vec<Vec<u8>>,
pub content_types: Option<Vec<ContentTypeId>>,
pub references_own_messages: bool,
/* private fields */
}Expand description
Selects public kinds and, for worker subscribers, internal facts.
Fields§
§kinds: Vec<EventKind>§group_ids: Option<Vec<Vec<u8>>>§dm_identifiers: Vec<Vec<u8>>DM identifiers resolved from group_ids when the subscription starts.
content_types: Option<Vec<ContentTypeId>>§references_own_messages: boolImplementations§
Source§impl<I> EventFilter<I>
impl<I> EventFilter<I>
Trait Implementations§
Auto Trait Implementations§
impl<I> Freeze for EventFilter<I>
impl<I> !RefUnwindSafe for EventFilter<I>
impl<I> Send for EventFilter<I>
impl<I> Sync for EventFilter<I>
impl<I> Unpin for EventFilter<I>
impl<I> UnsafeUnpin for EventFilter<I>
impl<I> !UnwindSafe for EventFilter<I>
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
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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