pub struct QueryState<T, M = ()> {
pub results: Vec<T>,
pub meta: M,
pub next_offset: usize,
pub page_size: usize,
pub created_at: Instant,
/* private fields */
}Expand description
State for a cached query including full results and pagination offset.
Fields§
§results: Vec<T>Cached full results
meta: MOptional metadata (e.g., warnings)
next_offset: usizeNext page start offset
page_size: usizePage size for this query
created_at: InstantWhen results were (re)computed
Implementations§
Source§impl<T> QueryState<T, ()>
impl<T> QueryState<T, ()>
Auto Trait Implementations§
impl<T, M> Freeze for QueryState<T, M>where
M: Freeze,
impl<T, M> RefUnwindSafe for QueryState<T, M>where
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, M> Send for QueryState<T, M>
impl<T, M> Sync for QueryState<T, M>
impl<T, M> Unpin for QueryState<T, M>
impl<T, M> UnwindSafe for QueryState<T, M>where
M: UnwindSafe,
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