Skip to main content

HaystackProvider

Trait HaystackProvider 

Source
pub trait HaystackProvider {
    type Error: Display + Debug + Send + Sync + 'static;

    // Required method
    async fn search(
        &self,
        query: &SearchQuery,
    ) -> Result<Vec<Document>, Self::Error>;
}

Required Associated Types§

Source

type Error: Display + Debug + Send + Sync + 'static

Required Methods§

Source

async fn search( &self, query: &SearchQuery, ) -> Result<Vec<Document>, Self::Error>

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§