pub struct PaginationQuery<'a> {
pub before: Option<&'a str>,
pub after: Option<&'a str>,
pub limit: Option<u32>,
pub order: Option<PaginationOrder>,
}Expand description
The standard pagination query parameters accepted by most list endpoints.
List request structs embed this and pass its values into
query_pairs_mut when building the URL.
Fields§
§before: Option<&'a str>A cursor for pagination: the object ID that defines the place in the list before which items are returned.
after: Option<&'a str>A cursor for pagination: the object ID that defines the place in the list after which items are returned.
limit: Option<u32>A limit on the number of objects to be returned (1-100, default 20 for most endpoints).
order: Option<PaginationOrder>The sort order of the returned objects.
Implementations§
Source§impl<'a> PaginationQuery<'a>
impl<'a> PaginationQuery<'a>
Trait Implementations§
Source§impl<'a> Clone for PaginationQuery<'a>
impl<'a> Clone for PaginationQuery<'a>
Source§fn clone(&self) -> PaginationQuery<'a>
fn clone(&self) -> PaginationQuery<'a>
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 moreimpl<'a> Copy for PaginationQuery<'a>
Source§impl<'a> Debug for PaginationQuery<'a>
impl<'a> Debug for PaginationQuery<'a>
Source§impl<'a> Default for PaginationQuery<'a>
impl<'a> Default for PaginationQuery<'a>
Source§fn default() -> PaginationQuery<'a>
fn default() -> PaginationQuery<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for PaginationQuery<'a>
impl<'a> RefUnwindSafe for PaginationQuery<'a>
impl<'a> Send for PaginationQuery<'a>
impl<'a> Sync for PaginationQuery<'a>
impl<'a> Unpin for PaginationQuery<'a>
impl<'a> UnsafeUnpin for PaginationQuery<'a>
impl<'a> UnwindSafe for PaginationQuery<'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