pub struct Filter<T> {
pub filter: T,
pub cursor: Option<String>,
pub limit: Option<u32>,
}Expand description
A type wrapping a CDF filter, with cursor and limit.
Fields§
§filter: TFilter results.
cursor: Option<String>Cursor for pagination.
limit: Option<u32>Maximum number of items to return.
Implementations§
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Filter<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Filter<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<T> Freeze for Filter<T>where
T: Freeze,
impl<T> RefUnwindSafe for Filter<T>where
T: RefUnwindSafe,
impl<T> Send for Filter<T>where
T: Send,
impl<T> Sync for Filter<T>where
T: Sync,
impl<T> Unpin for Filter<T>where
T: Unpin,
impl<T> UnwindSafe for Filter<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<TFilter, TResponse, T> FilterWithRequest<Filter<TFilter>, TResponse> for Twhere
TFilter: Serialize + Sync + Send + 'static,
TResponse: Serialize + DeserializeOwned,
T: FilterItems<TFilter, TResponse> + WithApiClient + WithBasePath,
impl<TFilter, TResponse, T> FilterWithRequest<Filter<TFilter>, TResponse> for Twhere
TFilter: Serialize + Sync + Send + 'static,
TResponse: Serialize + DeserializeOwned,
T: FilterItems<TFilter, TResponse> + WithApiClient + WithBasePath,
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