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