pub struct SearchRequest {
pub query: String,
pub index_path: IndexPath,
pub max_results: u32,
pub min_score: Option<f64>,
pub filters: Vec<SearchFilter>,
}Fields§
§query: String§index_path: IndexPath§max_results: u32§min_score: Option<f64>§filters: Vec<SearchFilter>Implementations§
Source§impl SearchRequest
impl SearchRequest
pub fn new(query: impl Into<String>, index_path: IndexPath) -> Self
pub fn with_filters(self, filters: impl Into<Vec<SearchFilter>>) -> Self
pub fn with_max_results(self, max_results: u32) -> Self
pub fn with_min_score(self, min_score: Option<f64>) -> Self
Trait Implementations§
Source§impl Debug for SearchRequest
impl Debug for SearchRequest
Auto Trait Implementations§
impl Freeze for SearchRequest
impl RefUnwindSafe for SearchRequest
impl Send for SearchRequest
impl Sync for SearchRequest
impl Unpin for SearchRequest
impl UnwindSafe for SearchRequest
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