#[non_exhaustive]pub struct BooleanFieldQuery {
pub bool_value: bool,
pub boost: Option<f32>,
pub field: Option<String>,
}Expand description
A boolean field query that matches documents with a specific boolean value.
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.bool_value: boolThe boolean value to match.
boost: Option<f32>The boost value for this query.
field: Option<String>The field to query.
Implementations§
Trait Implementations§
Source§impl Clone for BooleanFieldQuery
impl Clone for BooleanFieldQuery
Source§fn clone(&self) -> BooleanFieldQuery
fn clone(&self) -> BooleanFieldQuery
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 BooleanFieldQuery
impl Debug for BooleanFieldQuery
Source§impl From<BooleanFieldQuery> for BooleanFieldQuery
impl From<BooleanFieldQuery> for BooleanFieldQuery
Source§fn from(query: BooleanFieldQuery) -> Self
fn from(query: BooleanFieldQuery) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BooleanFieldQuery
impl PartialEq for BooleanFieldQuery
impl StructuralPartialEq for BooleanFieldQuery
Auto Trait Implementations§
impl Freeze for BooleanFieldQuery
impl RefUnwindSafe for BooleanFieldQuery
impl Send for BooleanFieldQuery
impl Sync for BooleanFieldQuery
impl Unpin for BooleanFieldQuery
impl UnsafeUnpin for BooleanFieldQuery
impl UnwindSafe for BooleanFieldQuery
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