pub trait FilterItems<TFilter, TResponse>where
TFilter: Serialize + Sync + Send + 'static,
TResponse: Serialize + DeserializeOwned,
Self: WithApiClient + WithBasePath + Sync,{
// Provided method
fn filter_items(
&self,
filter: TFilter,
cursor: Option<String>,
limit: Option<u32>,
) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send { ... }
}Expand description
Trait for resource types that allow filtering with a simple filter.
Provided Methods§
Sourcefn filter_items(
&self,
filter: TFilter,
cursor: Option<String>,
limit: Option<u32>,
) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
fn filter_items( &self, filter: TFilter, cursor: Option<String>, limit: Option<u32>, ) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
Filter resources using a simple filter. The response may contain a cursor that can be used to paginate results.
§Arguments
filter- Filter which items to retrieve.cursor- Optional cursor for pagination.limit- Maximum number of result items.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.