pub enum SelectItem {
Star {
span: Range<usize>,
},
Expression {
expr: Expression,
alias: Option<Identifier>,
span: Range<usize>,
},
}Expand description
Represents an item in a SELECT list.
Variants§
Star
Select all columns (*).
Expression
Select an expression with an optional alias.
Fields
§
expr: ExpressionThe expression to select.
§
alias: Option<Identifier>The optional alias for the expression.
Trait Implementations§
Source§impl AsDocument for SelectItem
Available on crate feature oak-pretty-print only.
impl AsDocument for SelectItem
Available on crate feature
oak-pretty-print only.Source§fn as_document(&self) -> Document<'_>
fn as_document(&self) -> Document<'_>
Converts this type to a document for pretty printing.
Source§impl Clone for SelectItem
impl Clone for SelectItem
Source§fn clone(&self) -> SelectItem
fn clone(&self) -> SelectItem
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 SelectItem
impl Debug for SelectItem
Source§impl<'de> Deserialize<'de> for SelectItem
impl<'de> Deserialize<'de> for SelectItem
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 Serialize for SelectItem
impl Serialize for SelectItem
Source§impl ToSource for SelectItem
impl ToSource for SelectItem
Source§fn to_source(&self, buffer: &mut SourceBuffer)
fn to_source(&self, buffer: &mut SourceBuffer)
Writes the source code representation of this type to the provided buffer.
Source§fn to_source_string(&self) -> String
fn to_source_string(&self) -> String
Converts this type to a source code string.
Auto Trait Implementations§
impl Freeze for SelectItem
impl RefUnwindSafe for SelectItem
impl Send for SelectItem
impl Sync for SelectItem
impl Unpin for SelectItem
impl UnsafeUnpin for SelectItem
impl UnwindSafe for SelectItem
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