Skip to main content

SearchBackend

Trait SearchBackend 

Source
pub trait SearchBackend: Send + Sync {
    // Required method
    fn search(
        &self,
        query: String,
        include_tasks: bool,
        include_events: bool,
        limit: Option<i64>,
        offset: Option<i64>,
    ) -> impl Future<Output = Result<PaginatedSearchResults>> + Send;
}
Expand description

Full-text and status-keyword search operations.

Required Methods§

Source

fn search( &self, query: String, include_tasks: bool, include_events: bool, limit: Option<i64>, offset: Option<i64>, ) -> impl Future<Output = Result<PaginatedSearchResults>> + Send

Unified search across tasks and events.

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§