pub struct QueryResult {
pub request_id: usize,
pub total_items: u32,
pub num_items: u32,
pub offset: u32,
pub request_flags: RequestFlags,
pub sort_type: SortType,
pub items: Vec<QueryResultItem>,
}Expand description
Result of a query operation.
Contains metadata about the query and the list of matching items.
Fields§
§request_id: usizeRequest ID that generated this result.
total_items: u32Total number of items matching the query.
num_items: u32Number of items in this result set.
offset: u32Offset used for this query.
request_flags: RequestFlagsRequest flags used for this query.
sort_type: SortTypeSort type used for this query.
items: Vec<QueryResultItem>The matching items.
Trait Implementations§
Source§impl Clone for QueryResult
impl Clone 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