#[non_exhaustive]pub enum ReaderFilter {
All,
Tag(String),
PersistenceId(String),
PersistenceIds(Vec<String>),
}Expand description
What stream of events the reader subscribes to. Selected via
Reader::filter; defaults to ReaderFilter::All.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
All
Every event from every persistence id.
Tag(String)
Only events whose crate::DomainEvent::tags contains this tag.
PersistenceId(String)
Only events from the given persistence id.
PersistenceIds(Vec<String>)
Only events whose persistence id is in the given set.
Trait Implementations§
Source§impl Clone for ReaderFilter
impl Clone for ReaderFilter
Source§fn clone(&self) -> ReaderFilter
fn clone(&self) -> ReaderFilter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReaderFilter
impl RefUnwindSafe for ReaderFilter
impl Send for ReaderFilter
impl Sync for ReaderFilter
impl Unpin for ReaderFilter
impl UnsafeUnpin for ReaderFilter
impl UnwindSafe for ReaderFilter
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