pub struct SearchClient { /* private fields */ }Implementations§
Source§impl SearchClient
impl SearchClient
pub fn new(transport: HttpTransport) -> Self
pub async fn search( &self, query: &str, options: Option<SearchOptions>, ) -> Result<SearchResponse>
pub async fn search_fast(&self, query: &str) -> Result<SearchResponse>
pub async fn search_deep(&self, query: &str) -> Result<SearchResponse>
pub async fn search_answer(&self, query: &str) -> Result<SearchResponse>
pub async fn models(&self) -> Result<Vec<String>>
pub async fn providers(&self) -> Result<Value>
pub async fn health(&self) -> Result<bool>
Trait Implementations§
Source§impl Clone for SearchClient
impl Clone for SearchClient
Source§fn clone(&self) -> SearchClient
fn clone(&self) -> SearchClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SearchClient
impl !RefUnwindSafe for SearchClient
impl Send for SearchClient
impl Sync for SearchClient
impl Unpin for SearchClient
impl UnsafeUnpin for SearchClient
impl !UnwindSafe for SearchClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more