#[non_exhaustive]pub struct BooleanQuery {
pub boost: Option<f32>,
pub must: Option<ConjunctionQuery>,
pub must_not: Option<DisjunctionQuery>,
pub should: Option<DisjunctionQuery>,
}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>§must: Option<ConjunctionQuery>§must_not: Option<DisjunctionQuery>§should: Option<DisjunctionQuery>Implementations§
Source§impl BooleanQuery
impl BooleanQuery
pub fn new() -> Self
pub fn boost(self, boost: impl Into<Option<f32>>) -> Self
pub fn must(self, must: impl Into<Option<ConjunctionQuery>>) -> Self
pub fn must_not(self, must_not: impl Into<Option<DisjunctionQuery>>) -> Self
pub fn should(self, should: impl Into<Option<DisjunctionQuery>>) -> Self
Trait Implementations§
Source§impl Clone for BooleanQuery
impl Clone for BooleanQuery
Source§fn clone(&self) -> BooleanQuery
fn clone(&self) -> BooleanQuery
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 BooleanQuery
impl Debug for BooleanQuery
Source§impl Default for BooleanQuery
impl Default for BooleanQuery
Source§fn default() -> BooleanQuery
fn default() -> BooleanQuery
Returns the “default value” for a type. Read more
Source§impl PartialEq for BooleanQuery
impl PartialEq for BooleanQuery
Source§impl Serialize for BooleanQuery
impl Serialize for BooleanQuery
impl StructuralPartialEq for BooleanQuery
Auto Trait Implementations§
impl Freeze for BooleanQuery
impl RefUnwindSafe for BooleanQuery
impl Send for BooleanQuery
impl Sync for BooleanQuery
impl Unpin for BooleanQuery
impl UnsafeUnpin for BooleanQuery
impl UnwindSafe for BooleanQuery
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