pub struct PagedResult<TRow>{
pub limit: u32,
pub size: u32,
pub first_cursor: Option<Cursor>,
pub last_cursor: Option<Cursor>,
pub sort_order: SortOrder,
pub has_more: bool,
pub results: Vec<TRow>,
}Expand description
Result of a paginated query
Fields§
§limit: u32The number of results that were requested
size: u32The number of results that were returned
first_cursor: Option<Cursor>If the query returned results, this will be the cursor for the first result
last_cursor: Option<Cursor>If the query returned results, this will be the cursor for the last result
sort_order: SortOrderThe sort order of the results
has_more: boolWhether there are more results available
results: Vec<TRow>The results of the query
Implementations§
Trait Implementations§
Source§impl<TRow> Clone for PagedResult<TRow>
impl<TRow> Clone for PagedResult<TRow>
Source§fn clone(&self) -> PagedResult<TRow>
fn clone(&self) -> PagedResult<TRow>
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<TRow> Debug for PagedResult<TRow>
impl<TRow> Debug for PagedResult<TRow>
Source§impl<'de, TRow> Deserialize<'de> for PagedResult<TRow>
impl<'de, TRow> Deserialize<'de> for PagedResult<TRow>
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
Auto Trait Implementations§
impl<TRow> Freeze for PagedResult<TRow>
impl<TRow> RefUnwindSafe for PagedResult<TRow>where
TRow: RefUnwindSafe,
impl<TRow> Send for PagedResult<TRow>where
TRow: Send,
impl<TRow> Sync for PagedResult<TRow>where
TRow: Sync,
impl<TRow> Unpin for PagedResult<TRow>where
TRow: Unpin,
impl<TRow> UnwindSafe for PagedResult<TRow>where
TRow: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more