pub struct CursorSlice<T> {
pub items: Vec<T>,
pub total: u64,
pub has_more: bool,
}Expand description
Repository page slice returned after fetching one extra row to detect a next page.
Fields§
§items: Vec<T>Items to expose to the caller after overfetch trimming.
total: u64Total number of items matching the query.
has_more: boolWhether the repository found at least one item beyond the requested limit.
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for CursorSlice<T>
impl<T: Clone> Clone for CursorSlice<T>
Source§fn clone(&self) -> CursorSlice<T>
fn clone(&self) -> CursorSlice<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for CursorSlice<T>
impl<T> RefUnwindSafe for CursorSlice<T>where
T: RefUnwindSafe,
impl<T> Send for CursorSlice<T>where
T: Send,
impl<T> Sync for CursorSlice<T>where
T: Sync,
impl<T> Unpin for CursorSlice<T>where
T: Unpin,
impl<T> UnsafeUnpin for CursorSlice<T>
impl<T> UnwindSafe for CursorSlice<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