pub struct QueryParams {
pub canonical: String,
pub params: Vec<(CompactString, CompactString)>,
pub ranges: HashMap<CompactString, Range>,
pub order: Vec<(EmbedPath, Vec<OrderTerm>)>,
pub logic: Vec<(EmbedPath, LogicTree)>,
pub columns: Option<HashSet<FieldName>>,
pub select: Vec<SelectItem>,
pub filters: Vec<(EmbedPath, Filter)>,
pub filters_root: Vec<Filter>,
pub filters_not_root: Vec<(EmbedPath, Filter)>,
pub filter_fields: HashSet<FieldName>,
pub on_conflict: Option<Vec<FieldName>>,
}Expand description
Parsed query parameters.
Parsed URL query parameters.
Fields§
§canonical: StringCanonical query string (sorted alphabetically)
params: Vec<(CompactString, CompactString)>RPC parameters (key-value pairs without operators)
ranges: HashMap<CompactString, Range>Ranges from &limit and &offset params
order: Vec<(EmbedPath, Vec<OrderTerm>)>Order parameters for each embed level
logic: Vec<(EmbedPath, LogicTree)>Logic trees for &and and &or parameters
columns: Option<HashSet<FieldName>>&columns parameter
select: Vec<SelectItem>&select parameter parsed into a tree
filters: Vec<(EmbedPath, Filter)>All filters (embed_path, filter)
filters_root: Vec<Filter>Filters on the root table only (no embed path)
filters_not_root: Vec<(EmbedPath, Filter)>Filters on embedded tables (non-root)
filter_fields: HashSet<FieldName>Set of field names that have filters
on_conflict: Option<Vec<FieldName>>&on_conflict parameter
Trait Implementations§
Source§impl Clone for QueryParams
impl Clone for QueryParams
Source§fn clone(&self) -> QueryParams
fn clone(&self) -> QueryParams
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 moreSource§impl Debug for QueryParams
impl Debug for QueryParams
Auto Trait Implementations§
impl Freeze for QueryParams
impl RefUnwindSafe for QueryParams
impl Send for QueryParams
impl Sync for QueryParams
impl Unpin for QueryParams
impl UnsafeUnpin for QueryParams
impl UnwindSafe for QueryParams
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