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