pub struct PaginationMeta {
pub limit: Option<i32>,
pub next_cursor: Option<String>,
pub previous_cursor: Option<String>,
pub sort: Option<String>,
}Expand description
PaginationMeta : Cursor-based pagination metadata.
Fields§
§limit: Option<i32>The number of records returned per page.
next_cursor: Option<String>Cursor value used to retrieve the next page of results. Empty if there are no more results.
previous_cursor: Option<String>Cursor value used to retrieve the previous page of results. Empty if there is no previous page.
sort: Option<String>The sort order applied to the results.
Implementations§
Source§impl PaginationMeta
impl PaginationMeta
Sourcepub fn new() -> PaginationMeta
pub fn new() -> PaginationMeta
Cursor-based pagination metadata.
Trait Implementations§
Source§impl Clone for PaginationMeta
impl Clone for PaginationMeta
Source§fn clone(&self) -> PaginationMeta
fn clone(&self) -> PaginationMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PaginationMeta
impl Debug for PaginationMeta
Source§impl Default for PaginationMeta
impl Default for PaginationMeta
Source§fn default() -> PaginationMeta
fn default() -> PaginationMeta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaginationMeta
impl<'de> Deserialize<'de> for PaginationMeta
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 PaginationMeta
impl PartialEq for PaginationMeta
Source§impl Serialize for PaginationMeta
impl Serialize for PaginationMeta
impl StructuralPartialEq for PaginationMeta
Auto Trait Implementations§
impl Freeze for PaginationMeta
impl RefUnwindSafe for PaginationMeta
impl Send for PaginationMeta
impl Sync for PaginationMeta
impl Unpin for PaginationMeta
impl UnsafeUnpin for PaginationMeta
impl UnwindSafe for PaginationMeta
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