Struct hcloud::models::pagination::Pagination
source · pub struct Pagination {
pub last_page: Option<i64>,
pub next_page: Option<i64>,
pub page: i64,
pub per_page: i64,
pub previous_page: Option<i64>,
pub total_entries: Option<i64>,
}
Expand description
Pagination : Information about the current pagination. The keys previous_page, next_page, last_page, and total_entries may be null when on the first page, last page, or when the total number of entries is unknown
Fields§
§last_page: Option<i64>
ID of the last page available. Can be null if the current page is the last one.
next_page: Option<i64>
ID of the next page. Can be null if the current page is the last one.
page: i64
Current page number
per_page: i64
Maximum number of items shown per page in the response
previous_page: Option<i64>
ID of the previous page. Can be null if the current page is the first one.
total_entries: Option<i64>
The total number of entries that exist in the database for this query. Nullable if unknown.
Implementations§
source§impl Pagination
impl Pagination
sourcepub fn new(
last_page: Option<i64>,
next_page: Option<i64>,
page: i64,
per_page: i64,
previous_page: Option<i64>,
total_entries: Option<i64>
) -> Pagination
pub fn new( last_page: Option<i64>, next_page: Option<i64>, page: i64, per_page: i64, previous_page: Option<i64>, total_entries: Option<i64> ) -> Pagination
Information about the current pagination. The keys previous_page, next_page, last_page, and total_entries may be null when on the first page, last page, or when the total number of entries is unknown
Trait Implementations§
source§impl Clone for Pagination
impl Clone for Pagination
source§fn clone(&self) -> Pagination
fn clone(&self) -> Pagination
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Pagination
impl Debug for Pagination
source§impl Default for Pagination
impl Default for Pagination
source§fn default() -> Pagination
fn default() -> 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>,
source§impl PartialEq for Pagination
impl PartialEq for Pagination
source§fn eq(&self, other: &Pagination) -> bool
fn eq(&self, other: &Pagination) -> bool
self
and other
values to be equal, and is used
by ==
.