pub struct PaginatorResponseMeta {
pub page: u32,
pub per_page: u32,
pub total: u32,
pub total_pages: u32,
pub has_next: bool,
pub has_prev: bool,
}Expand description
Metadata about the pagination state
Fields§
§page: u32Current page number
per_page: u32Items per page
total: u32Total number of items
total_pages: u32Total number of pages
has_next: boolWhether there is a next page
has_prev: boolWhether there is a previous page
Implementations§
Trait Implementations§
Source§impl Debug for PaginatorResponseMeta
impl Debug for PaginatorResponseMeta
Source§impl<'de> Deserialize<'de> for PaginatorResponseMeta
impl<'de> Deserialize<'de> for PaginatorResponseMeta
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 Freeze for PaginatorResponseMeta
impl RefUnwindSafe for PaginatorResponseMeta
impl Send for PaginatorResponseMeta
impl Sync for PaginatorResponseMeta
impl Unpin for PaginatorResponseMeta
impl UnwindSafe for PaginatorResponseMeta
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