pub struct CursorPage<T: Serialize + ApiSchema, C: Serialize + ApiSchema> {
pub items: Vec<T>,
pub total: u64,
pub limit: u64,
pub next_cursor: Option<C>,
}Expand description
Serialized cursor page response.
Fields§
§items: Vec<T>Items in the current page.
total: u64Total number of items matching the query.
limit: u64Effective page size.
next_cursor: Option<C>Cursor that can be sent back to fetch the next page.
Implementations§
Trait Implementations§
Source§impl<T: Clone + Serialize + ApiSchema, C: Clone + Serialize + ApiSchema> Clone for CursorPage<T, C>
impl<T: Clone + Serialize + ApiSchema, C: Clone + Serialize + ApiSchema> Clone for CursorPage<T, C>
Source§fn clone(&self) -> CursorPage<T, C>
fn clone(&self) -> CursorPage<T, C>
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<T, C> ComposeSchema for CursorPage<T, C>
impl<T, C> ComposeSchema for CursorPage<T, C>
Source§impl<T: Debug + Serialize + ApiSchema, C: Debug + Serialize + ApiSchema> Debug for CursorPage<T, C>
impl<T: Debug + Serialize + ApiSchema, C: Debug + Serialize + ApiSchema> Debug for CursorPage<T, C>
Source§impl<T, C> Serialize for CursorPage<T, C>
impl<T, C> Serialize for CursorPage<T, C>
Source§impl<T, C> ToSchema for CursorPage<T, C>
impl<T, C> ToSchema for CursorPage<T, C>
Auto Trait Implementations§
impl<T, C> Freeze for CursorPage<T, C>where
C: Freeze,
impl<T, C> RefUnwindSafe for CursorPage<T, C>where
C: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, C> Send for CursorPage<T, C>
impl<T, C> Sync for CursorPage<T, C>
impl<T, C> Unpin for CursorPage<T, C>
impl<T, C> UnsafeUnpin for CursorPage<T, C>where
C: UnsafeUnpin,
impl<T, C> UnwindSafe for CursorPage<T, C>where
C: UnwindSafe,
T: 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