#[non_exhaustive]pub struct ListOptions {
pub page: Option<u32>,
pub limit: Option<u32>,
pub cursor: Option<String>,
pub shape: Option<String>,
pub flat: bool,
pub flat_lists: bool,
}Expand description
Pagination, shape, and flattening options common to every list endpoint.
Resource-specific option builders compose this via a pagination field.
Constructing one directly is rarely useful; use the resource builder
(e.g. ListContractsOptions::builder()) and call .page(...),
.limit(...), .cursor(...), .shape(...), etc. on it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.page: Option<u32>1-based page number for offset-paginated endpoints. Mutually exclusive
with cursor; when both are set, the cursor wins.
limit: Option<u32>Page size. The server caps this at 100 on most endpoints.
cursor: Option<String>Keyset cursor for cursor-paginated endpoints. Pass the cursor field
from the previous Page.
shape: Option<String>Comma-separated field selector for dynamic response shaping. Use one of
the SHAPE_* constants or roll your own.
flat: boolWhen true, collapse nested objects into dot-separated keys.
flat_lists: boolWhen true (and flat is also true), flatten
list-valued nested fields as well.
Implementations§
Source§impl ListOptions
impl ListOptions
Sourcepub fn builder() -> ListOptionsBuilder
pub fn builder() -> ListOptionsBuilder
Create an instance of ListOptions using the builder syntax
Trait Implementations§
Source§impl Clone for ListOptions
impl Clone for ListOptions
Source§fn clone(&self) -> ListOptions
fn clone(&self) -> ListOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ListOptions
impl Debug for ListOptions
Source§impl Default for ListOptions
impl Default for ListOptions
Source§fn default() -> ListOptions
fn default() -> ListOptions
Source§impl PartialEq for ListOptions
impl PartialEq for ListOptions
Source§fn eq(&self, other: &ListOptions) -> bool
fn eq(&self, other: &ListOptions) -> bool
self and other values to be equal, and is used by ==.