pub enum FetchRows {
Limit(u32),
Page {
offset: u32,
limit: u32,
},
}Expand description
The row fetch mode for a search request.
Use FetchRows::limit to cap the number of results, or
FetchRows::page to fetch a specific window with offset and limit.
Note that these two modes return different response shapes from
ResourceSpace — page returns a structured response with a total
count alongside the results.
FetchRows::limit(100) // return up to 100 results
FetchRows::page(0, 50) // return results 0–50Variants§
Limit(u32)
Return up to N rows
Page
Return rows with explicit offset and limit, enables paginated response
Implementations§
Trait Implementations§
impl StructuralPartialEq for FetchRows
Auto Trait Implementations§
impl Freeze for FetchRows
impl RefUnwindSafe for FetchRows
impl Send for FetchRows
impl Sync for FetchRows
impl Unpin for FetchRows
impl UnsafeUnpin for FetchRows
impl UnwindSafe for FetchRows
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