pub struct PaginationParams<'a> {
pub order: &'a PaginationOrder,
pub after: Option<&'a str>,
pub before: Option<&'a str>,
pub limit: Option<u8>,
}
Expand description
The parameters used to control pagination for a given paginated endpoint.
Fields§
§order: &'a PaginationOrder
The order in which records should be paginated.
after: Option<&'a str>
The cursor after which records should be retrived.
before: Option<&'a str>
The cursor before which records should be retrieved.
limit: Option<u8>
Upper limit on the number of objects to return, between 1 and 100. The default value is 10.
Trait Implementations§
Source§impl<'a> Clone for PaginationParams<'a>
impl<'a> Clone for PaginationParams<'a>
Source§fn clone(&self) -> PaginationParams<'a>
fn clone(&self) -> PaginationParams<'a>
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<'a> Debug for PaginationParams<'a>
impl<'a> Debug for PaginationParams<'a>
Source§impl Default for PaginationParams<'_>
impl Default for PaginationParams<'_>
Auto Trait Implementations§
impl<'a> Freeze for PaginationParams<'a>
impl<'a> RefUnwindSafe for PaginationParams<'a>
impl<'a> Send for PaginationParams<'a>
impl<'a> Sync for PaginationParams<'a>
impl<'a> Unpin for PaginationParams<'a>
impl<'a> UnwindSafe for PaginationParams<'a>
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