pub struct QueryResult<T> {
pub items: Vec<T>,
pub total: usize,
pub offset: usize,
}Expand description
The result of a store query, including pagination metadata.
Fields§
§items: Vec<T>The matched items in this page.
total: usizeTotal number of matching items before pagination was applied.
offset: usizeThe offset that was used to produce this page.
Implementations§
Source§impl<T> QueryResult<T>
impl<T> QueryResult<T>
Trait Implementations§
Source§impl<T: Clone> Clone for QueryResult<T>
impl<T: Clone> Clone for QueryResult<T>
Source§fn clone(&self) -> QueryResult<T>
fn clone(&self) -> QueryResult<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for QueryResult<T>
impl<T> RefUnwindSafe for QueryResult<T>where
T: RefUnwindSafe,
impl<T> Send for QueryResult<T>where
T: Send,
impl<T> Sync for QueryResult<T>where
T: Sync,
impl<T> Unpin for QueryResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for QueryResult<T>
impl<T> UnwindSafe for QueryResult<T>where
T: UnwindSafe,
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