Skip to main content

IndexSearch

Trait IndexSearch 

Source
pub trait IndexSearch: Send + Sync {
    // Required method
    fn search(
        &self,
        tenant: &TenantId,
        project: &ProjectId,
        request: &SearchRequest,
        options: &SearchOptions,
    ) -> impl Future<Output = Result<SearchReturn, OperationOutcomeError>> + Send;
}
Expand description

A search backend’s index, as far as the resolver needs it: a type-level search whose parameters are resolved with the base parameters alone.

Required Methods§

Source

fn search( &self, tenant: &TenantId, project: &ProjectId, request: &SearchRequest, options: &SearchOptions, ) -> impl Future<Output = Result<SearchReturn, OperationOutcomeError>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§