pub struct SearchParams {
pub query: String,
pub fields: Vec<String>,
pub case_sensitive: bool,
pub exact_match: bool,
}Fields§
§query: String§fields: Vec<String>§case_sensitive: bool§exact_match: boolImplementations§
Source§impl SearchParams
impl SearchParams
pub fn new( query: impl Into<String>, fields: impl IntoIterator<Item = String>, ) -> SearchParams
pub fn with_case_sensitive(self, sensitive: bool) -> SearchParams
pub fn with_exact_match(self, exact: bool) -> SearchParams
Trait Implementations§
Source§impl Clone for SearchParams
impl Clone for SearchParams
Source§fn clone(&self) -> SearchParams
fn clone(&self) -> SearchParams
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 SearchParams
impl Debug for SearchParams
Source§impl IntoParams for SearchParams
impl IntoParams for SearchParams
fn into_params(self) -> Params
Source§impl PartialEq for SearchParams
impl PartialEq for SearchParams
impl StructuralPartialEq for SearchParams
Auto Trait Implementations§
impl Freeze for SearchParams
impl RefUnwindSafe for SearchParams
impl Send for SearchParams
impl Sync for SearchParams
impl Unpin for SearchParams
impl UnwindSafe for SearchParams
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