pub struct DateFilter {
pub equals: Option<NaiveDate>,
pub not: Option<Box<DateFilter>>,
pub in_list: Option<Vec<NaiveDate>>,
pub not_in: Option<Vec<NaiveDate>>,
pub lt: Option<NaiveDate>,
pub lte: Option<NaiveDate>,
pub gt: Option<NaiveDate>,
pub gte: Option<NaiveDate>,
}Expand description
Filter for non-nullable Date columns (encoded YYYY-MM-DD).
Fields§
§equals: Option<NaiveDate>column = value
not: Option<Box<DateFilter>>Negation.
in_list: Option<Vec<NaiveDate>>column IN (...)
not_in: Option<Vec<NaiveDate>>column NOT IN (...)
lt: Option<NaiveDate>column < value
lte: Option<NaiveDate>column <= value
gt: Option<NaiveDate>column > value
gte: Option<NaiveDate>column >= value
Implementations§
Source§impl DateFilter
impl DateFilter
Trait Implementations§
Source§impl Clone for DateFilter
impl Clone for DateFilter
Source§fn clone(&self) -> DateFilter
fn clone(&self) -> DateFilter
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 DateFilter
impl Debug for DateFilter
Source§impl Default for DateFilter
impl Default for DateFilter
Source§fn default() -> DateFilter
fn default() -> DateFilter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DateFilter
impl<'de> Deserialize<'de> for DateFilter
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 DateFilter
impl PartialEq for DateFilter
Source§fn eq(&self, other: &DateFilter) -> bool
fn eq(&self, other: &DateFilter) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ScalarFilter for DateFilter
impl ScalarFilter for DateFilter
Source§impl Serialize for DateFilter
impl Serialize for DateFilter
impl StructuralPartialEq for DateFilter
Auto Trait Implementations§
impl Freeze for DateFilter
impl RefUnwindSafe for DateFilter
impl Send for DateFilter
impl Sync for DateFilter
impl Unpin for DateFilter
impl UnsafeUnpin for DateFilter
impl UnwindSafe for DateFilter
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