pub struct ProjectItem {
pub expr: ExprId,
pub alias: Option<String>,
pub out_var: Option<VarId>,
}Expand description
A single item in a PROJECT or WITH operator: an expression plus an optional alias.
Fields§
§expr: ExprIdThe expression to project.
alias: Option<String>Optional output column name.
out_var: Option<VarId>For a WITH item only: the variable this item introduces into the
downstream scope (#814). The lowerer maps it to the projected column so a
later clause referencing the alias resolves. None for terminal RETURN
items, which introduce no scope.
Trait Implementations§
Source§impl Clone for ProjectItem
impl Clone for ProjectItem
Source§fn clone(&self) -> ProjectItem
fn clone(&self) -> ProjectItem
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 ProjectItem
impl Debug for ProjectItem
Source§impl<'de> Deserialize<'de> for ProjectItem
impl<'de> Deserialize<'de> for ProjectItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProjectItem
impl PartialEq for ProjectItem
Source§impl Serialize for ProjectItem
impl Serialize for ProjectItem
impl StructuralPartialEq for ProjectItem
Auto Trait Implementations§
impl Freeze for ProjectItem
impl RefUnwindSafe for ProjectItem
impl Send for ProjectItem
impl Sync for ProjectItem
impl Unpin for ProjectItem
impl UnsafeUnpin for ProjectItem
impl UnwindSafe for ProjectItem
Blanket Implementations§
impl<T> Allocation for T
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