pub struct Cursor<T> {
pub data: Vec<T>,
pub per_page: u32,
pub has_next: bool,
pub has_prev: bool,
pub next_cursor: Option<String>,
pub prev_cursor: Option<String>,
}Expand description
Cursor pagination response - cursor-based pagination for large datasets
Fields§
§data: Vec<T>§per_page: u32§has_next: bool§has_prev: bool§next_cursor: Option<String>§prev_cursor: Option<String>Implementations§
Trait Implementations§
impl<T> Eq for Cursor<T>where
T: Eq,
impl<T> StructuralPartialEq for Cursor<T>
Auto Trait Implementations§
impl<T> Freeze for Cursor<T>
impl<T> RefUnwindSafe for Cursor<T>where
T: RefUnwindSafe,
impl<T> Send for Cursor<T>where
T: Send,
impl<T> Sync for Cursor<T>where
T: Sync,
impl<T> Unpin for Cursor<T>where
T: Unpin,
impl<T> UnwindSafe for Cursor<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