pub struct QueryOptions {
pub limit: Option<usize>,
pub batch_size: usize,
pub auto_paginate: bool,
}Expand description
Builder for query options
Fields§
§limit: Option<usize>Maximum number of records to fetch (None = fetch all)
batch_size: usizeBatch size per request (max 2000)
auto_paginate: boolEnable automatic pagination
Implementations§
Source§impl QueryOptions
impl QueryOptions
Sourcepub fn batch_size(self, size: usize) -> Self
pub fn batch_size(self, size: usize) -> Self
Set the batch size (how many records per API call)
Sourcepub fn no_pagination(self) -> Self
pub fn no_pagination(self) -> Self
Disable automatic pagination (single request only)
Trait Implementations§
Source§impl Clone for QueryOptions
impl Clone for QueryOptions
Source§fn clone(&self) -> QueryOptions
fn clone(&self) -> QueryOptions
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 QueryOptions
impl Debug for QueryOptions
Auto Trait Implementations§
impl Freeze for QueryOptions
impl RefUnwindSafe for QueryOptions
impl Send for QueryOptions
impl Sync for QueryOptions
impl Unpin for QueryOptions
impl UnwindSafe for QueryOptions
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