#[non_exhaustive]pub struct TermQuery {
pub boost: Option<f32>,
pub field: Option<String>,
pub fuzziness: Option<u32>,
pub prefix_length: Option<u32>,
pub term: String,
}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.boost: Option<f32>§field: Option<String>§fuzziness: Option<u32>§prefix_length: Option<u32>§term: StringImplementations§
Source§impl TermQuery
impl TermQuery
pub fn new(term: impl Into<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<u32>>) -> Self
pub fn prefix_length(self, prefix_length: impl Into<Option<u32>>) -> Self
Trait Implementations§
impl StructuralPartialEq for TermQuery
Auto Trait Implementations§
impl Freeze for TermQuery
impl RefUnwindSafe for TermQuery
impl Send for TermQuery
impl Sync for TermQuery
impl Unpin for TermQuery
impl UnsafeUnpin for TermQuery
impl UnwindSafe for TermQuery
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