pub struct DataQuery {
pub offset: usize,
pub limit: usize,
pub order_by: Vec<String>,
pub search: Option<String>,
pub filters: HashMap<String, String>,
}Expand description
A resolved query for a list view.
order_by entries are pre-rendered "field ASC" / "field DESC" clauses
(see crate::model::OrderingField::as_sql and
crate::SortOrder::as_sql) so a SQL-backed data source can splice them
directly, while the in-memory stub parses the leading field name.
Fields§
§offset: usizeZero-based row offset.
limit: usizeMaximum number of rows to return.
A value of 0 is the “no limit” sentinel: it means “return every
matching row” (used by CSV export), not “return zero rows”. Every
DataSource implementation MUST honor this convention — a SQL-backed
source must omit the LIMIT clause entirely rather than emit LIMIT 0.
order_by: Vec<String>Ordering clauses, most-significant first.
search: Option<String>Free-text search query (matched against the model’s search_fields).
filters: HashMap<String, String>Exact-match filters (field -> value).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataQuery
impl RefUnwindSafe for DataQuery
impl Send for DataQuery
impl Sync for DataQuery
impl Unpin for DataQuery
impl UnsafeUnpin for DataQuery
impl UnwindSafe for DataQuery
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<R, D> DepsPresent<D> for R
Source§impl<T> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging