Struct QueryString

Source
pub struct QueryString { /* private fields */ }

Implementations§

Source§

impl QueryString

Source

pub fn new() -> Self

Source

pub fn value<T: Into<String>>(self, value: T) -> Self

Source

pub fn query<T: Into<String>>(self, query: T) -> Self

Source

pub fn default_field<T: Into<String>>(self, default_field: T) -> Self

Source

pub fn query_type<T: Into<Type>>(self, typ: T) -> Self

Source

pub fn fuzziness<T: Into<Fuzziness>>(self, fuzziness: T) -> Self

Source

pub fn fuzzy_transpositions(self, fuzzy_transpositions: bool) -> Self

Source

pub fn fuzzy_max_expansions<T: Into<u64>>(self, fuzzy_max_expansions: T) -> Self

Source

pub fn fuzzy_prefix_length<T: Into<u64>>(self, fuzzy_prefix_length: T) -> Self

Source

pub fn minimum_should_match<T: Into<String>>( self, minimum_should_match: T, ) -> Self

Source

pub fn default_operator<T: Into<Operator>>(self, default_operator: T) -> Self

Source

pub fn analyzer<T: Into<String>>(self, analyzer: T) -> Self

Source

pub fn lenient(self, lenient: bool) -> Self

Source

pub fn boost<T: Into<f64>>(self, boost: T) -> Self

Source

pub fn allow_leading_wildcard(self, allow_leading_wildcard: bool) -> Self

Source

pub fn enable_position_increments( self, enable_position_increments: bool, ) -> Self

Source

pub fn phrase_slop<T: Into<u64>>(self, phrase_slop: T) -> Self

Source

pub fn max_determinized_states<T: Into<u64>>( self, max_determinized_states: T, ) -> Self

Source

pub fn time_zone<T: Into<String>>(self, time_zone: T) -> Self

Source

pub fn quote_field_suffix<T: Into<String>>(self, quote_field_suffix: T) -> Self

Source

pub fn quote_analyzer<T: Into<String>>(self, quote_analyzer: T) -> Self

Source

pub fn analyze_wildcard(self, analyze_wildcard: bool) -> Self

Source

pub fn auto_generate_synonyms_phrase_query( self, auto_generate_synonyms_phrase_query: bool, ) -> Self

Trait Implementations§

Source§

impl Clone for QueryString

Source§

fn clone(&self) -> QueryString

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for QueryString

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for QueryString

Source§

fn default() -> QueryString

Returns the “default value” for a type. Read more
Source§

impl From<QueryString> for QueryField

Source§

fn from(val: QueryString) -> Self

Converts to this type from the input type.
Source§

impl Serialize for QueryString

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.