pub struct PagedResponse<T: Serialize> {
pub items: Vec<T>,
pub total: u64,
pub page: u32,
pub page_size: u32,
pub total_pages: u32,
}Fields§
§items: Vec<T>§total: u64§page: u32§page_size: u32§total_pages: u32Implementations§
Source§impl<T: Serialize> PagedResponse<T>
impl<T: Serialize> PagedResponse<T>
Trait Implementations§
Source§impl<T: Clone + Serialize> Clone for PagedResponse<T>
impl<T: Clone + Serialize> Clone for PagedResponse<T>
Source§fn clone(&self) -> PagedResponse<T>
fn clone(&self) -> PagedResponse<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 PagedResponse<T>
impl<T> RefUnwindSafe for PagedResponse<T>where
T: RefUnwindSafe,
impl<T> Send for PagedResponse<T>where
T: Send,
impl<T> Sync for PagedResponse<T>where
T: Sync,
impl<T> Unpin for PagedResponse<T>where
T: Unpin,
impl<T> UnsafeUnpin for PagedResponse<T>
impl<T> UnwindSafe for PagedResponse<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