pub struct QueryResult {
pub rows: Vec<Record>,
pub next_cursor: Option<Cursor>,
pub aggregation: Option<AggregationResult>,
pub scanned_records: u64,
pub matched_records: u64,
}Expand description
Complete successful query response.
Fields§
§rows: Vec<Record>Page rows after global merge, sort, cursor, and limit.
next_cursor: Option<Cursor>Cursor after the last row when more rows remain.
aggregation: Option<AggregationResult>Optional aggregation over every filtered record before pagination.
scanned_records: u64Records inspected across every shard.
matched_records: u64Records matching the filter before pagination.
Trait Implementations§
Source§impl Clone for QueryResult
impl Clone for QueryResult
Source§fn clone(&self) -> QueryResult
fn clone(&self) -> QueryResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QueryResult
impl Debug for QueryResult
impl Eq for QueryResult
Source§impl PartialEq for QueryResult
impl PartialEq for QueryResult
impl StructuralPartialEq for QueryResult
Auto Trait Implementations§
impl Freeze for QueryResult
impl RefUnwindSafe for QueryResult
impl Send for QueryResult
impl Sync for QueryResult
impl Unpin for QueryResult
impl UnsafeUnpin for QueryResult
impl UnwindSafe for QueryResult
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