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