pub struct EventFilterQuery {
pub filter: Option<EventFilter>,
pub advanced_filter: Option<AdvancedFilter>,
pub limit: Option<i32>,
pub sort: Option<Vec<CoreSortItem>>,
pub cursor: Option<String>,
pub partition: Option<Partition>,
}Expand description
Request for filtering events.
Fields§
§filter: Option<EventFilter>Simple event filter.
advanced_filter: Option<AdvancedFilter>Advanced filter.
limit: Option<i32>Maximum number of events to return. The default is 100, and the maximum is 1000.
sort: Option<Vec<CoreSortItem>>Sort result by list of properties. The order is significant.
cursor: Option<String>Optional cursor for pagination.
partition: Option<Partition>Split the data set into partitions.
Trait Implementations§
Source§impl Clone for EventFilterQuery
impl Clone for EventFilterQuery
Source§fn clone(&self) -> EventFilterQuery
fn clone(&self) -> EventFilterQuery
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventFilterQuery
impl Debug for EventFilterQuery
Source§impl Default for EventFilterQuery
impl Default for EventFilterQuery
Source§fn default() -> EventFilterQuery
fn default() -> EventFilterQuery
Returns the “default value” for a type. Read more
Source§impl FilterWithRequest<EventFilterQuery, Event> for EventsResource
impl FilterWithRequest<EventFilterQuery, Event> for EventsResource
Source§fn filter(
&self,
filter: TFilter,
) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
fn filter( &self, filter: TFilter, ) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
Filter resources. Read more
Source§fn filter_all(
&self,
filter: TFilter,
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn filter_all( &self, filter: TFilter, ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Filter resources, following cursors until they are exhausted. Read more
Source§fn filter_all_stream(
&self,
filter: TFilter,
) -> impl TryStream<Ok = TResponse, Error = Error, Item = Result<TResponse>> + Send
fn filter_all_stream( &self, filter: TFilter, ) -> impl TryStream<Ok = TResponse, Error = Error, Item = Result<TResponse>> + Send
Filter resources, following cursors. This returns a stream, you can abort the stream whenever you
want and only resources retrieved up to that point will be returned. Read more
Source§fn filter_all_partitioned(
&self,
filter: TFilter,
num_partitions: u32,
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn filter_all_partitioned( &self, filter: TFilter, num_partitions: u32, ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Filter resources using partitioned reads, following cursors until all partitions are
exhausted. Read more
Source§impl Serialize for EventFilterQuery
impl Serialize for EventFilterQuery
Source§impl SetCursor for EventFilterQuery
impl SetCursor for EventFilterQuery
Source§fn set_cursor(&mut self, cursor: Option<String>)
fn set_cursor(&mut self, cursor: Option<String>)
Set cursor to the given value.
Source§impl WithPartition for EventFilterQuery
impl WithPartition for EventFilterQuery
Source§fn with_partition(&self, partition: Partition) -> Self
fn with_partition(&self, partition: Partition) -> Self
Create a clone of self with given partition.
Auto Trait Implementations§
impl Freeze for EventFilterQuery
impl RefUnwindSafe for EventFilterQuery
impl Send for EventFilterQuery
impl Sync for EventFilterQuery
impl Unpin for EventFilterQuery
impl UnwindSafe for EventFilterQuery
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