pub struct PageCursor {
pub v: u8,
pub data_type: String,
pub offset: usize,
pub total: usize,
pub strategy: String,
pub budget: usize,
}Expand description
Cursor for navigating paginated overflow data.
Encoded as base64(JSON) for compactness in tool parameters.
Fields§
§v: u8Cursor format version (for forward compatibility).
data_type: StringData type (e.g. “issues”, “diffs”, “discussions”).
offset: usizeOffset into the full dataset.
total: usizeTotal number of items in the full dataset.
strategy: StringStrategy used for trimming (for consistent pagination).
budget: usizeBudget tokens used.
Implementations§
Source§impl PageCursor
impl PageCursor
Trait Implementations§
Source§impl Clone for PageCursor
impl Clone for PageCursor
Source§fn clone(&self) -> PageCursor
fn clone(&self) -> PageCursor
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 PageCursor
impl Debug for PageCursor
Source§impl<'de> Deserialize<'de> for PageCursor
impl<'de> Deserialize<'de> for PageCursor
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
Source§impl PartialEq for PageCursor
impl PartialEq for PageCursor
Source§fn eq(&self, other: &PageCursor) -> bool
fn eq(&self, other: &PageCursor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PageCursor
impl Serialize for PageCursor
impl StructuralPartialEq for PageCursor
Auto Trait Implementations§
impl Freeze for PageCursor
impl RefUnwindSafe for PageCursor
impl Send for PageCursor
impl Sync for PageCursor
impl Unpin for PageCursor
impl UnsafeUnpin for PageCursor
impl UnwindSafe for PageCursor
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