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