pub struct OffsetPage<T: Serialize + ApiSchema> {
pub items: Vec<T>,
pub total: u64,
pub limit: u64,
pub offset: u64,
}Expand description
Serialized offset page response.
Fields§
§items: Vec<T>Items in the current page.
total: u64Total number of items matching the query.
limit: u64Effective page size.
offset: u64Offset used for this page.
Implementations§
Trait Implementations§
Source§impl<T: Clone + Serialize + ApiSchema> Clone for OffsetPage<T>
impl<T: Clone + Serialize + ApiSchema> Clone for OffsetPage<T>
Source§fn clone(&self) -> OffsetPage<T>
fn clone(&self) -> OffsetPage<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 moreSource§impl<T> ComposeSchema for OffsetPage<T>where
T: ToSchema + Serialize + ApiSchema,
impl<T> ComposeSchema for OffsetPage<T>where
T: ToSchema + Serialize + ApiSchema,
Source§impl<T> Serialize for OffsetPage<T>
impl<T> Serialize for OffsetPage<T>
Auto Trait Implementations§
impl<T> Freeze for OffsetPage<T>
impl<T> RefUnwindSafe for OffsetPage<T>where
T: RefUnwindSafe,
impl<T> Send for OffsetPage<T>where
T: Send,
impl<T> Sync for OffsetPage<T>where
T: Sync,
impl<T> Unpin for OffsetPage<T>where
T: Unpin,
impl<T> UnsafeUnpin for OffsetPage<T>
impl<T> UnwindSafe for OffsetPage<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