pub struct ListParams {
pub limit: Option<usize>,
pub offset: Option<usize>,
pub cursor: Option<String>,
}Expand description
Pagination parameters.
Fields§
§limit: Option<usize>§offset: Option<usize>§cursor: Option<String>Implementations§
Source§impl ListParams
impl ListParams
Sourcepub(crate) fn to_query_pairs(&self) -> Vec<(&str, String)>
pub(crate) fn to_query_pairs(&self) -> Vec<(&str, String)>
Build query string parameters.
Trait Implementations§
Source§impl Clone for ListParams
impl Clone for ListParams
Source§fn clone(&self) -> ListParams
fn clone(&self) -> ListParams
Returns a duplicate 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 ListParams
impl Debug for ListParams
Source§impl Default for ListParams
impl Default for ListParams
Source§fn default() -> ListParams
fn default() -> ListParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ListParams
impl RefUnwindSafe for ListParams
impl Send for ListParams
impl Sync for ListParams
impl Unpin for ListParams
impl UnwindSafe for ListParams
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