Struct fiberplane_models::paging::Pagination
source · #[non_exhaustive]pub struct Pagination {
pub page: u32,
pub limit: u32,
}Expand description
A struct that represents the pagination of a list endpoint.
Some list endpoints support pagination by passing in querystring parameters,
which are page and limit. This Pagination object is used to be used
within api client when making a request.
Note that not all endpoints support pagination and some endpoints might ignore values that are too high.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.page: u32§limit: u32Implementations§
source§impl Pagination
impl Pagination
source§impl Pagination
impl Pagination
Trait Implementations§
source§impl Clone for Pagination
impl Clone for Pagination
source§fn clone(&self) -> Pagination
fn clone(&self) -> Pagination
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for Pagination
impl Debug for Pagination
source§impl Default for Pagination
impl Default 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
source§impl PartialEq for Pagination
impl PartialEq for Pagination
source§fn eq(&self, other: &Pagination) -> bool
fn eq(&self, other: &Pagination) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for Pagination
impl Serialize for Pagination
impl Eq for Pagination
impl StructuralPartialEq for Pagination
Auto Trait Implementations§
impl Freeze for Pagination
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