pub struct StreamConfig {
pub page_size: u32,
pub max_pages: usize,
pub delay_between_requests: Duration,
}
Expand description
Configuration for streaming search results
Fields§
§page_size: u32
Number of results per page
max_pages: usize
Maximum number of pages to fetch
delay_between_requests: Duration
Delay between requests to avoid rate limiting
Implementations§
Source§impl StreamConfig
impl StreamConfig
Sourcepub fn page_size(self, size: u32) -> SerpResult<Self>
pub fn page_size(self, size: u32) -> SerpResult<Self>
Set the number of results per page (1-100)
Trait Implementations§
Source§impl Clone for StreamConfig
impl Clone for StreamConfig
Source§fn clone(&self) -> StreamConfig
fn clone(&self) -> StreamConfig
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 StreamConfig
impl Debug for StreamConfig
Auto Trait Implementations§
impl Freeze for StreamConfig
impl RefUnwindSafe for StreamConfig
impl Send for StreamConfig
impl Sync for StreamConfig
impl Unpin for StreamConfig
impl UnwindSafe for StreamConfig
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