pub struct PagedResponse<T> {
pub page_number: Option<i32>,
pub page_size: Option<i32>,
pub total_pages: Option<i32>,
pub total_records: Option<i32>,
pub items: Option<Vec<T>>,
}Expand description
A paginated response from the API.
Fields§
§page_number: Option<i32>§page_size: Option<i32>§total_pages: Option<i32>§total_records: Option<i32>§items: Option<Vec<T>>Trait Implementations§
Source§impl<T: Clone> Clone for PagedResponse<T>
impl<T: Clone> 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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for PagedResponse<T>
impl<T: Debug> Debug for PagedResponse<T>
Source§impl<'de, T> Deserialize<'de> for PagedResponse<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for PagedResponse<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto 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