pub struct ProjectionRequest<'a> {
pub view: &'a str,
pub projection: Option<&'a SqlProjectionHint>,
pub where_clause: Option<&'a WhereClause>,
pub order_by: Option<&'a [OrderByClause]>,
pub limit: Option<u32>,
pub offset: Option<u32>,
}Expand description
Parameters for an execute_with_projection_arc call (F043).
Consolidates the six positional parameters of the projection-execution path into a single borrowed struct so adapters and callers cannot reorder them by mistake. All fields borrow from the caller; the struct is constructed per-request on the stack and discarded after the call.
§Field ordering
The field order mirrors a SQL SELECT … FROM view WHERE … ORDER BY … LIMIT … OFFSET … clause, top-to-bottom, so that reading the struct mirrors the
query it produces.
Intentionally not #[non_exhaustive]: the struct is the call shape
of the trait method and any field addition is a breaking trait change
regardless. Callers construct it with a struct literal so that omitting a
field is a hard compile error.
Fields§
§view: &'a strView or table name (e.g. "v_user").
projection: Option<&'a SqlProjectionHint>Projection hint (SELECT shape). None falls back to SELECT data.
where_clause: Option<&'a WhereClause>WHERE clause AST. None means no filter.
order_by: Option<&'a [OrderByClause]>ORDER BY clauses. Empty slice (or None) means unordered.
limit: Option<u32>Row limit. None means no limit.
offset: Option<u32>Row offset. None means no offset.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for ProjectionRequest<'a>
impl<'a> Clone for ProjectionRequest<'a>
Source§fn clone(&self) -> ProjectionRequest<'a>
fn clone(&self) -> ProjectionRequest<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more