Struct dnsimple::dnsimple::Pagination
source · pub struct Pagination {
pub current_page: u64,
pub per_page: u64,
pub total_entries: u64,
pub total_pages: u64,
}
Expand description
Any API endpoint that returns a list of items requires pagination. By default we will return 30 records from any listing endpoint. If an API endpoint returns a list of items, then it will include a pagination object that contains pagination information.
Fields§
§current_page: u64
The page currently returned (default: 1)
per_page: u64
The number of entries returned per page (default: 30)
total_entries: u64
The total number of entries available in the entire collection
total_pages: u64
The total number of pages available given the current per_page
value
Trait Implementations§
source§impl Debug for Pagination
impl Debug for Pagination
source§impl<'de> Deserialize<'de> for Pagination
impl<'de> Deserialize<'de> for Pagination
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 RefUnwindSafe for Pagination
impl Send for Pagination
impl Sync for Pagination
impl Unpin for Pagination
impl UnwindSafe for Pagination
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