#[non_exhaustive]pub struct GridRequest {
pub offset: usize,
pub limit: usize,
pub sort: Vec<(usize, SortDirection)>,
pub filters: Vec<String>,
pub search: String,
pub after: Option<Vec<Value>>,
pub wants_total: bool,
}Expand description
What a RemoteRows loader must bring.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.offset: usizeThe first row wanted, from the start of the result.
limit: usizeHow many rows, at most.
sort: Vec<(usize, SortDirection)>Sort columns (zero-based) in priority order.
filters: Vec<String>Filter text per column (index = column).
search: StringWhat is being searched for.
after: Option<Vec<Value>>The row just before offset, when it is at hand. With it a query can continue
from there (WHERE key > ?) and not walk past offset rows, which is what
makes OFFSET slow on a big table.
wants_total: boolWhether the total is still unknown. Answer None to leave it so: a total can
cost the database more than all the rows ever shown.
Trait Implementations§
Source§impl Clone for GridRequest
impl Clone for GridRequest
Source§fn clone(&self) -> GridRequest
fn clone(&self) -> GridRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GridRequest
impl Debug for GridRequest
Source§impl PartialEq for GridRequest
impl PartialEq for GridRequest
impl StructuralPartialEq for GridRequest
Auto Trait Implementations§
impl Freeze for GridRequest
impl RefUnwindSafe for GridRequest
impl Send for GridRequest
impl Sync for GridRequest
impl Unpin for GridRequest
impl UnsafeUnpin for GridRequest
impl UnwindSafe for GridRequest
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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