Skip to main content

SearchProvider

Trait SearchProvider 

Source
pub trait SearchProvider: Send + Sync {
    // Required methods
    fn id(&self) -> &str;
    fn search(&self, query: &str) -> Result<Value, String>;
}
Expand description

One optional search implementation supplied by a host outside this repository.

Required Methods§

Source

fn id(&self) -> &str

Source

fn search(&self, query: &str) -> Result<Value, String>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§