pub struct TermsSet { /* private fields */ }
Implementations§
Source§impl TermsSet
impl TermsSet
pub fn new() -> Self
pub fn field<T: Into<String> + Serialize>(self, field: T) -> Self
pub fn minimum_should_match_field<T: Into<String> + Serialize>( self, minimum_should_match_field: T, ) -> Self
pub fn minimum_should_match_script<T: Into<Script> + Serialize>( self, minimum_should_match_script: T, ) -> Self
pub fn terms<T, F>(self, terms: F) -> Self
pub fn boost<T: Into<f64> + Serialize>(self, boost: T) -> Self
Trait Implementations§
Source§impl From<TermsSet> for QueryField
impl From<TermsSet> for QueryField
Auto Trait Implementations§
impl Freeze for TermsSet
impl RefUnwindSafe for TermsSet
impl Send for TermsSet
impl Sync for TermsSet
impl Unpin for TermsSet
impl UnwindSafe for TermsSet
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