pub struct Slice<T> {
pub data: Vec<T>,
pub page: u32,
pub size: u32,
pub has_next: bool,
pub has_previous: bool,
pub total_items: Option<i64>,
}Expand description
Slice pagination response - efficient pagination without total count
Fields§
§data: Vec<T>§page: u32§size: u32§has_next: bool§has_previous: bool§total_items: Option<i64>Implementations§
Trait Implementations§
impl<T> Eq for Slice<T>where
T: Eq,
impl<T> StructuralPartialEq for Slice<T>
Auto Trait Implementations§
impl<T> Freeze for Slice<T>
impl<T> RefUnwindSafe for Slice<T>where
T: RefUnwindSafe,
impl<T> Send for Slice<T>where
T: Send,
impl<T> Sync for Slice<T>where
T: Sync,
impl<T> Unpin for Slice<T>where
T: Unpin,
impl<T> UnwindSafe for Slice<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