pub struct Query {
pub start: usize,
pub end: usize,
pub sort: Option<SortSpec>,
pub filter: Option<Filter>,
}Expand description
A lazy, virtualized query against the data plane.
start/end, sort, and filter describe what the frontend wants now — the
store returns a bounded page, never a full materialization of every object. The
window is a plain start/end pair (not std::ops::Range<usize>) so it serializes
stably over the wire.
Fields§
§start: usizeInclusive window start (e.g. 400 for a virtualized table window).
end: usizeExclusive window end (e.g. 460).
sort: Option<SortSpec>Sort key and direction (column id + descending flag).
filter: Option<Filter>Filter predicate in a stable, serializable form (not a closure — it must cross
the serve/gRPC-Web boundary).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Query
impl<'de> Deserialize<'de> for Query
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Query
impl StructuralPartialEq for Query
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin for Query
impl UnwindSafe for Query
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