pub struct Typed {
pub project: Type,
pub scope: Scope,
pub aggregate: bool,
}Expand description
Represents the state of a query that has been statically analyzed.
This type is used as a marker to indicate that a query has successfully passed static analysis. It contains metadata about the query’s type information and variable scope after type checking.
All variables in a typed query are guaranteed to be:
- Properly declared and in scope
- Type-safe with sound type assignments
Fields§
§project: TypeThe inferred type of the query’s projection (PROJECT INTO clause).
This represents the shape and types of the data that will be returned by the query.
scope: ScopeThe variable scope after static analysis.
Contains all variables that were in scope during type checking, including bindings from FROM clauses and their associated types.
aggregate: boolIndicates if the query uses aggregate functions.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Typed
impl RefUnwindSafe for Typed
impl Send for Typed
impl Sync for Typed
impl Unpin for Typed
impl UnwindSafe for Typed
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