SearchItems

Trait SearchItems 

Source
pub trait SearchItems<'a, TFilter, TSearch, TResponse>
where TFilter: Serialize + Sync + Send + 'a, TSearch: Serialize + Sync + Send + 'a, TResponse: Serialize + DeserializeOwned, Self: WithApiClient + WithBasePath + Sync,
{ // Provided method fn search( &'a self, filter: TFilter, search: TSearch, limit: Option<u32>, ) -> impl Future<Output = Result<Vec<TResponse>>> + Send { ... } }
Expand description

Trait for resource types that allow filtering with fuzzy search.

Provided Methods§

Source

fn search( &'a self, filter: TFilter, search: TSearch, limit: Option<u32>, ) -> impl Future<Output = Result<Vec<TResponse>>> + Send

Fuzzy search resources.

§Arguments
  • filter - Simple filter applied to items.
  • search - Fuzzy search.
  • limit - Maximum number of items to retrieve.

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.

Implementors§