pub struct PaginatorResponseMeta {
pub page: u32,
pub per_page: u32,
pub total: Option<u32>,
pub total_pages: Option<u32>,
pub has_next: bool,
pub has_prev: bool,
pub next_cursor: Option<String>,
pub prev_cursor: Option<String>,
}Fields§
§page: u32§per_page: u32§total: Option<u32>§total_pages: Option<u32>§has_next: bool§has_prev: bool§next_cursor: Option<String>§prev_cursor: Option<String>Implementations§
Source§impl PaginatorResponseMeta
impl PaginatorResponseMeta
pub fn new(page: u32, per_page: u32, total: u32) -> PaginatorResponseMeta
pub fn new_without_total( page: u32, per_page: u32, has_next: bool, ) -> PaginatorResponseMeta
pub fn new_with_cursors( page: u32, per_page: u32, total: Option<u32>, has_next: bool, next_cursor: Option<String>, prev_cursor: Option<String>, ) -> PaginatorResponseMeta
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<PaginatorResponseMeta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PaginatorResponseMeta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PaginatorResponseMeta
impl Serialize for PaginatorResponseMeta
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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