#[non_exhaustive]pub struct MatchQuery {
pub analyzer: Option<String>,
pub boost: Option<f32>,
pub field: Option<String>,
pub fuzziness: Option<u64>,
pub match_input: String,
pub operator: Option<MatchOperator>,
pub prefix_length: Option<u64>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.analyzer: Option<String>§boost: Option<f32>§field: Option<String>§fuzziness: Option<u64>§match_input: String§operator: Option<MatchOperator>§prefix_length: Option<u64>Implementations§
Source§impl MatchQuery
impl MatchQuery
pub fn new(match_input: impl Into<String>) -> Self
pub fn analyzer(self, analyzer: impl Into<Option<String>>) -> Self
pub fn boost(self, boost: impl Into<Option<f32>>) -> Self
pub fn field(self, field: impl Into<Option<String>>) -> Self
pub fn fuzziness(self, fuzziness: impl Into<Option<u64>>) -> Self
pub fn operator(self, operator: impl Into<Option<MatchOperator>>) -> Self
pub fn prefix_length(self, prefix_length: impl Into<Option<u64>>) -> Self
Trait Implementations§
Source§impl Clone for MatchQuery
impl Clone for MatchQuery
Source§fn clone(&self) -> MatchQuery
fn clone(&self) -> MatchQuery
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 MatchQuery
impl Debug for MatchQuery
Source§impl PartialEq for MatchQuery
impl PartialEq for MatchQuery
Source§impl Serialize for MatchQuery
impl Serialize for MatchQuery
impl StructuralPartialEq for MatchQuery
Auto Trait Implementations§
impl Freeze for MatchQuery
impl RefUnwindSafe for MatchQuery
impl Send for MatchQuery
impl Sync for MatchQuery
impl Unpin for MatchQuery
impl UnsafeUnpin for MatchQuery
impl UnwindSafe for MatchQuery
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