pub struct QueryResult {
pub documents: Pin<Box<dyn Stream<Item = Result<Document>> + Send>>,
pub total_count: Option<usize>,
pub execution_time: Duration,
}Expand description
The result of executing a query.
Fields§
§documents: Pin<Box<dyn Stream<Item = Result<Document>> + Send>>The matching documents as a stream
total_count: Option<usize>Total number of documents that matched (before limit/offset), None if not known
execution_time: DurationTime taken to execute the query
Auto Trait Implementations§
impl Freeze for QueryResult
impl !RefUnwindSafe for QueryResult
impl Send for QueryResult
impl !Sync for QueryResult
impl Unpin 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