pub struct CursorPaginationInfo {
pub next_cursor: Option<String>,
pub has_more: bool,
pub count: Option<i64>,
}Expand description
Cursor-based pagination information for list responses
Provides stable pagination that handles data changes between requests. The cursor is an opaque base64-encoded JSON containing sort field, value, and last item ID.
Fields§
§next_cursor: Option<String>Opaque cursor for fetching next page (None if no more results)
has_more: boolWhether more results are available
count: Option<i64>Aggregate row count. Some only on a count=true response (which pairs it
with an empty data array); None on every non-count response.
Trait Implementations§
Source§impl Clone for CursorPaginationInfo
impl Clone for CursorPaginationInfo
Source§fn clone(&self) -> CursorPaginationInfo
fn clone(&self) -> CursorPaginationInfo
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 Debug for CursorPaginationInfo
impl Debug for CursorPaginationInfo
Source§impl<'de> Deserialize<'de> for CursorPaginationInfo
impl<'de> Deserialize<'de> for CursorPaginationInfo
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 Freeze for CursorPaginationInfo
impl RefUnwindSafe for CursorPaginationInfo
impl Send for CursorPaginationInfo
impl Sync for CursorPaginationInfo
impl Unpin for CursorPaginationInfo
impl UnsafeUnpin for CursorPaginationInfo
impl UnwindSafe for CursorPaginationInfo
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