Struct ehelply::models::pagination::Pagination
source · [−]pub struct Pagination {
pub current_page: i32,
pub page_size: i32,
pub total_items: i32,
pub total_pages: i32,
pub has_previous_page: bool,
pub has_next_page: bool,
pub previous_page: Option<i32>,
pub next_page: Option<i32>,
}
Expand description
Pagination : Pagination state
Fields
current_page: i32
page_size: i32
total_items: i32
total_pages: i32
has_previous_page: bool
has_next_page: bool
previous_page: Option<i32>
next_page: Option<i32>
Implementations
Trait Implementations
sourceimpl Clone for Pagination
impl Clone for Pagination
sourcefn clone(&self) -> Pagination
fn clone(&self) -> Pagination
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Pagination
impl Debug for Pagination
sourceimpl Default for Pagination
impl Default for Pagination
sourcefn default() -> Pagination
fn default() -> Pagination
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Pagination
impl<'de> Deserialize<'de> for Pagination
sourcefn 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
sourceimpl PartialEq<Pagination> for Pagination
impl PartialEq<Pagination> for Pagination
sourcefn eq(&self, other: &Pagination) -> bool
fn eq(&self, other: &Pagination) -> bool
sourceimpl Serialize for Pagination
impl Serialize for Pagination
impl StructuralPartialEq for Pagination
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more