pub struct MatchPhrase { /* private fields */ }Implementations§
Source§impl MatchPhrase
impl MatchPhrase
pub fn new() -> Self
pub fn field<T: Into<String>>(self, field: T) -> Self
pub fn value<T: Into<Value>>(self, val: T) -> Self
pub fn query<T: Into<Value>>(self, value: T) -> Self
pub fn slop<T: Into<u64>>(self, slop: T) -> Self
pub fn analyzer<T: Into<String>>(self, analyzer: T) -> Self
pub fn zero_terms_query<T: Into<String>>(self, zero_terms_query: T) -> Self
Trait Implementations§
Source§impl Clone for MatchPhrase
impl Clone for MatchPhrase
Source§fn clone(&self) -> MatchPhrase
fn clone(&self) -> MatchPhrase
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 MatchPhrase
impl Debug for MatchPhrase
Source§impl Default for MatchPhrase
impl Default for MatchPhrase
Source§fn default() -> MatchPhrase
fn default() -> MatchPhrase
Returns the “default value” for a type. Read more
Source§impl From<MatchPhrase> for QueryField
impl From<MatchPhrase> for QueryField
Source§fn from(val: MatchPhrase) -> Self
fn from(val: MatchPhrase) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MatchPhrase
impl RefUnwindSafe for MatchPhrase
impl Send for MatchPhrase
impl Sync for MatchPhrase
impl Unpin for MatchPhrase
impl UnwindSafe for MatchPhrase
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