pub struct DateRangeExpression {
pub from: Option<FieldDateMath>,
pub key: Option<String>,
pub to: Option<FieldDateMath>,
}Fields§
§from: Option<FieldDateMath>A date range limit, represented either as a DateMath expression or a number expressed according to the target field’s precision.
key: Option<String>Custom key to return the range with.
to: Option<FieldDateMath>A date range limit, represented either as a DateMath expression or a number expressed according to the target field’s precision.
Implementations§
Source§impl DateRangeExpression
impl DateRangeExpression
pub fn new() -> DateRangeExpression
Trait Implementations§
Source§impl Clone for DateRangeExpression
impl Clone for DateRangeExpression
Source§fn clone(&self) -> DateRangeExpression
fn clone(&self) -> DateRangeExpression
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DateRangeExpression
impl Debug for DateRangeExpression
Source§impl Default for DateRangeExpression
impl Default for DateRangeExpression
Source§fn default() -> DateRangeExpression
fn default() -> DateRangeExpression
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DateRangeExpression
impl<'de> Deserialize<'de> for DateRangeExpression
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DateRangeExpression
impl PartialEq for DateRangeExpression
Source§fn eq(&self, other: &DateRangeExpression) -> bool
fn eq(&self, other: &DateRangeExpression) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DateRangeExpression
impl Serialize for DateRangeExpression
impl StructuralPartialEq for DateRangeExpression
Auto Trait Implementations§
impl Freeze for DateRangeExpression
impl RefUnwindSafe for DateRangeExpression
impl Send for DateRangeExpression
impl Sync for DateRangeExpression
impl Unpin for DateRangeExpression
impl UnsafeUnpin for DateRangeExpression
impl UnwindSafe for DateRangeExpression
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