pub enum PageStatus {
Complete,
FirstPage,
MiddlePage,
LastPage,
}Expand description
Pagination state for an MCP list response.
Determined by checking params.cursor in the request and
result.nextCursor in the response.
Variants§
Complete
Single-page response (no pagination). This is the common path.
FirstPage
First page of a paginated response (no cursor in request, has nextCursor).
MiddlePage
Middle page (has cursor in request and nextCursor in response).
LastPage
Last page (has cursor in request, no nextCursor in response).
Trait Implementations§
Source§impl Clone for PageStatus
impl Clone for PageStatus
Source§fn clone(&self) -> PageStatus
fn clone(&self) -> PageStatus
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 moreSource§impl Debug for PageStatus
impl Debug for PageStatus
Source§impl PartialEq for PageStatus
impl PartialEq for PageStatus
Source§impl Serialize for PageStatus
impl Serialize for PageStatus
impl Eq for PageStatus
impl StructuralPartialEq for PageStatus
Auto Trait Implementations§
impl Freeze for PageStatus
impl RefUnwindSafe for PageStatus
impl Send for PageStatus
impl Sync for PageStatus
impl Unpin for PageStatus
impl UnsafeUnpin for PageStatus
impl UnwindSafe for PageStatus
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