pub struct PartitionedFilter<T> {
pub filter: T,
pub cursor: Option<String>,
pub limit: Option<u32>,
pub partition: Option<Partition>,
}Expand description
A wrapper around a filter, with cursor, limit, and partition.
Fields§
§filter: TFilter results.
cursor: Option<String>Cursor for pagination.
limit: Option<u32>Maximum number of results to return.
partition: Option<Partition>Partition to use.
Implementations§
Source§impl<T> PartitionedFilter<T>
impl<T> PartitionedFilter<T>
Sourcepub fn new(
filter: T,
cursor: Option<String>,
limit: Option<u32>,
partition: Option<Partition>,
) -> PartitionedFilter<T>
pub fn new( filter: T, cursor: Option<String>, limit: Option<u32>, partition: Option<Partition>, ) -> PartitionedFilter<T>
Create a new partitioned filter.
§Arguments
filter- Filter results.cursor- Cursor for pagination.limit- Maximum number of results to return.partition- Partition to use.
Trait Implementations§
Source§impl<T: Clone> Clone for PartitionedFilter<T>
impl<T: Clone> Clone for PartitionedFilter<T>
Source§fn clone(&self) -> PartitionedFilter<T>
fn clone(&self) -> PartitionedFilter<T>
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<T: Debug> Debug for PartitionedFilter<T>
impl<T: Debug> Debug for PartitionedFilter<T>
Source§impl FilterWithRequest<PartitionedFilter<FileFilter>, FileMetadata> for Files
impl FilterWithRequest<PartitionedFilter<FileFilter>, FileMetadata> for Files
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<T> Serialize for PartitionedFilter<T>where
T: Serialize,
impl<T> Serialize for PartitionedFilter<T>where
T: Serialize,
Source§impl<T> SetCursor for PartitionedFilter<T>
impl<T> SetCursor for PartitionedFilter<T>
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<T> WithPartition for PartitionedFilter<T>where
T: Clone,
impl<T> WithPartition for PartitionedFilter<T>where
T: Clone,
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<T> Freeze for PartitionedFilter<T>where
T: Freeze,
impl<T> RefUnwindSafe for PartitionedFilter<T>where
T: RefUnwindSafe,
impl<T> Send for PartitionedFilter<T>where
T: Send,
impl<T> Sync for PartitionedFilter<T>where
T: Sync,
impl<T> Unpin for PartitionedFilter<T>where
T: Unpin,
impl<T> UnwindSafe for PartitionedFilter<T>where
T: UnwindSafe,
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