#[non_exhaustive]pub struct QueryOptions { /* private fields */ }Implementations§
Source§impl QueryOptions
impl QueryOptions
pub fn new(index_name: impl Into<String>) -> Self
pub fn collections(self, collections: impl Into<Option<Vec<String>>>) -> Self
pub fn control(self, control: impl Into<Option<Control>>) -> Self
pub fn explain(self, explain: impl Into<Option<bool>>) -> Self
pub fn facets(self, facets: impl Into<Option<HashMap<String, Facet>>>) -> Self
pub fn fields(self, fields: impl Into<Option<Vec<String>>>) -> Self
pub fn from(self, from: impl Into<Option<u32>>) -> Self
pub fn highlight(self, highlight: impl Into<Option<Highlight>>) -> Self
pub fn include_locations( self, include_locations: impl Into<Option<bool>>, ) -> Self
pub fn query(self, query: impl Into<Option<Query>>) -> Self
pub fn score(self, score: impl Into<Option<String>>) -> Self
pub fn search_after(self, search_after: impl Into<Option<Vec<String>>>) -> Self
pub fn search_before( self, search_before: impl Into<Option<Vec<String>>>, ) -> Self
pub fn show_request(self, show_request: impl Into<Option<bool>>) -> Self
pub fn size(self, size: impl Into<Option<u32>>) -> Self
pub fn sort(self, sort: impl Into<Option<Vec<Sort>>>) -> Self
pub fn knn(self, knn: impl Into<Option<Vec<KnnQuery>>>) -> Self
pub fn knn_operator(self, knn_operator: impl Into<Option<KnnOperator>>) -> Self
pub fn raw(self, raw: impl Into<Option<HashMap<String, Value>>>) -> Self
pub fn scope_name(self, scope_name: impl Into<Option<String>>) -> Self
pub fn bucket_name(self, bucket_name: impl Into<Option<String>>) -> Self
pub fn on_behalf_of( self, on_behalf_of: impl Into<Option<OnBehalfOfInfo>>, ) -> Self
Trait Implementations§
Source§impl Clone for QueryOptions
impl Clone for QueryOptions
Source§fn clone(&self) -> QueryOptions
fn clone(&self) -> QueryOptions
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 moreSource§impl Debug for QueryOptions
impl Debug for QueryOptions
Source§impl Default for QueryOptions
impl Default for QueryOptions
Source§fn default() -> QueryOptions
fn default() -> QueryOptions
Returns the “default value” for a type. Read more
Source§impl From<SearchOptions> for QueryOptions
impl From<SearchOptions> for QueryOptions
Source§fn from(opts: SearchOptions) -> Self
fn from(opts: SearchOptions) -> Self
Converts to this type from the input type.
Source§impl PartialEq for QueryOptions
impl PartialEq for QueryOptions
Source§impl Serialize for QueryOptions
impl Serialize for QueryOptions
impl StructuralPartialEq for QueryOptions
Auto Trait Implementations§
impl Freeze for QueryOptions
impl RefUnwindSafe for QueryOptions
impl Send for QueryOptions
impl Sync for QueryOptions
impl Unpin for QueryOptions
impl UnsafeUnpin for QueryOptions
impl UnwindSafe for QueryOptions
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