pub enum FilterCriteria {
Show 14 variants ExcludeTags { tags: Vec<Tag>, }, RemoveExcludeTags { tags: Vec<Tag>, }, IncludeTags { tags: Vec<Tag>, }, RemoveIncludeTags { tags: Vec<Tag>, }, ExcludeRegexEntityIds { matching: Vec<ComparableRegex>, }, RemoveExcludeRegexEntityIds { matching: Vec<ComparableRegex>, }, IncludeRegexEntityIds { matching: Vec<ComparableRegex>, }, RemoveIncludeRegexEntityIds { matching: Vec<ComparableRegex>, }, ExcludeEntityIds { entity_ids: Vec<EntityId>, }, RemoveExcludeEntityIds { entity_ids: Vec<EntityId>, }, IncludeEntityIds { entity_id_offsets: Vec<EntityIdOffset>, }, RemoveIncludeEntityIds { entity_ids: Vec<EntityId>, }, IncludeTopics { expressions: Vec<TopicMatcher>, }, RemoveIncludeTopics { expressions: Vec<TopicMatcher>, },
}
Expand description

Exclude criteria are evaluated first. If no matching exclude criteria the event is emitted. If an exclude criteria is matching the include criteria are evaluated. If no matching include criteria the event is discarded. If matching include criteria the event is emitted.

Variants§

§

ExcludeTags

Fields

§tags: Vec<Tag>

Exclude events with any of the given tags, unless there is a matching include filter that overrides the exclude.

§

RemoveExcludeTags

Fields

§tags: Vec<Tag>

Remove a previously added ExcludeTags.

§

IncludeTags

Fields

§tags: Vec<Tag>

Include events with any of the given tags. A matching include overrides a matching exclude.

§

RemoveIncludeTags

Fields

§tags: Vec<Tag>

Remove a previously added IncludeTags.

§

ExcludeRegexEntityIds

Fields

Exclude events for entities with entity ids matching the given regular expressions, unless there is a matching include filter that overrides the exclude.

§

RemoveExcludeRegexEntityIds

Fields

Remove a previously added ExcludeRegexEntityIds.

§

IncludeRegexEntityIds

Fields

Include events for entities with entity ids matching the given regular expressions. A matching include overrides a matching exclude.

§

RemoveIncludeRegexEntityIds

Fields

Remove a previously added IncludeRegexEntityIds.

§

ExcludeEntityIds

Fields

§entity_ids: Vec<EntityId>

Exclude events for entities with the given entity ids, unless there is a matching include filter that overrides the exclude.

§

RemoveExcludeEntityIds

Fields

§entity_ids: Vec<EntityId>

Remove a previously added ExcludeEntityIds.

§

IncludeEntityIds

Fields

§entity_id_offsets: Vec<EntityIdOffset>

Include events for entities with the given entity ids. A matching include overrides a matching exclude.

For the given entity ids a seq_nr can be defined to replay all events for the entity from the sequence number (inclusive). If seq_nr is 0 events will not be replayed.

§

RemoveIncludeEntityIds

Fields

§entity_ids: Vec<EntityId>

Remove a previously added IncludeEntityIds.

§

IncludeTopics

Fields

§expressions: Vec<TopicMatcher>

Include events with any of the given matching topics. A matching include overrides a matching exclude.

§

RemoveIncludeTopics

Fields

§expressions: Vec<TopicMatcher>

Remove a previously added IncludeTopics.

Trait Implementations§

source§

impl Clone for FilterCriteria

source§

fn clone(&self) -> FilterCriteria

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.