pub struct DateTimeRangeResponse<T, DateTime> {
pub results: Vec<T>,
pub more: Option<DateTimeRangeQuery<DateTime>>,
}
Expand description
The paginated response to a datetime query
This structure provides a standard format for returning time-based paginated results, including both the results and pagination metadata for retrieving the next page.
Fields§
§results: Vec<T>
The collection of results matching the query
more: Option<DateTimeRangeQuery<DateTime>>
Optional pagination metadata for retrieving the next page of results. If present, indicates there are more results available.
Trait Implementations§
Source§impl<T: Clone, DateTime: Clone> Clone for DateTimeRangeResponse<T, DateTime>
impl<T: Clone, DateTime: Clone> Clone for DateTimeRangeResponse<T, DateTime>
Source§fn clone(&self) -> DateTimeRangeResponse<T, DateTime>
fn clone(&self) -> DateTimeRangeResponse<T, 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<T: PartialEq, DateTime: PartialEq> PartialEq for DateTimeRangeResponse<T, DateTime>
impl<T: PartialEq, DateTime: PartialEq> PartialEq for DateTimeRangeResponse<T, DateTime>
Source§fn eq(&self, other: &DateTimeRangeResponse<T, DateTime>) -> bool
fn eq(&self, other: &DateTimeRangeResponse<T, DateTime>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<T, DateTime> StructuralPartialEq for DateTimeRangeResponse<T, DateTime>
Auto Trait Implementations§
impl<T, DateTime> Freeze for DateTimeRangeResponse<T, DateTime>where
DateTime: Freeze,
impl<T, DateTime> RefUnwindSafe for DateTimeRangeResponse<T, DateTime>where
T: RefUnwindSafe,
DateTime: RefUnwindSafe,
impl<T, DateTime> Send for DateTimeRangeResponse<T, DateTime>
impl<T, DateTime> Sync for DateTimeRangeResponse<T, DateTime>
impl<T, DateTime> Unpin for DateTimeRangeResponse<T, DateTime>
impl<T, DateTime> UnwindSafe for DateTimeRangeResponse<T, DateTime>where
T: UnwindSafe,
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