pub struct DateTimeRangeQuery<DateTime> {
pub before: Option<DateTime>,
pub after: Option<DateTime>,
}
Expand description
A query type for dealing with datetime ranges
This structure enables API endpoints to accept parameters for filtering results based on time ranges with optional upper and lower bounds.
Fields§
§before: Option<DateTime>
The upper bound (exclusive) for the datetime range
after: Option<DateTime>
The lower bound (inclusive) for the datetime range
Trait Implementations§
Source§impl<DateTime: Clone> Clone for DateTimeRangeQuery<DateTime>
impl<DateTime: Clone> Clone for DateTimeRangeQuery<DateTime>
Source§fn clone(&self) -> DateTimeRangeQuery<DateTime>
fn clone(&self) -> DateTimeRangeQuery<DateTime>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<DateTime: Debug> Debug for DateTimeRangeQuery<DateTime>
impl<DateTime: Debug> Debug for DateTimeRangeQuery<DateTime>
Source§impl<DateTime: PartialEq> PartialEq for DateTimeRangeQuery<DateTime>
impl<DateTime: PartialEq> PartialEq for DateTimeRangeQuery<DateTime>
Source§fn eq(&self, other: &DateTimeRangeQuery<DateTime>) -> bool
fn eq(&self, other: &DateTimeRangeQuery<DateTime>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<DateTime> StructuralPartialEq for DateTimeRangeQuery<DateTime>
Auto Trait Implementations§
impl<DateTime> Freeze for DateTimeRangeQuery<DateTime>where
DateTime: Freeze,
impl<DateTime> RefUnwindSafe for DateTimeRangeQuery<DateTime>where
DateTime: RefUnwindSafe,
impl<DateTime> Send for DateTimeRangeQuery<DateTime>where
DateTime: Send,
impl<DateTime> Sync for DateTimeRangeQuery<DateTime>where
DateTime: Sync,
impl<DateTime> Unpin for DateTimeRangeQuery<DateTime>where
DateTime: Unpin,
impl<DateTime> UnwindSafe for DateTimeRangeQuery<DateTime>where
DateTime: UnwindSafe,
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