pub struct CursorResponse<T> {
pub data: T,
pub next_cursor: Option<String>,
}Expand description
A paginated response containing data and an optional cursor for the next page.
Fields§
§data: TThe response data.
next_cursor: Option<String>Pass this value as the cursor parameter to fetch the next page.
None means there are no more pages.
Trait Implementations§
Source§impl<T: Clone> Clone for CursorResponse<T>
impl<T: Clone> Clone for CursorResponse<T>
Source§fn clone(&self) -> CursorResponse<T>
fn clone(&self) -> CursorResponse<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for CursorResponse<T>where
T: Freeze,
impl<T> RefUnwindSafe for CursorResponse<T>where
T: RefUnwindSafe,
impl<T> Send for CursorResponse<T>where
T: Send,
impl<T> Sync for CursorResponse<T>where
T: Sync,
impl<T> Unpin for CursorResponse<T>where
T: Unpin,
impl<T> UnsafeUnpin for CursorResponse<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for CursorResponse<T>where
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