pub enum SelectItem {
UnnamedExpr(Expr),
ExprQualifiedWildcard(Expr, Vec<Ident>),
ExprWithAlias {
expr: Expr,
alias: Ident,
},
QualifiedWildcard(ObjectName, Option<Vec<Expr>>),
Wildcard(Option<Vec<Expr>>),
}
Expand description
One item of the comma-separated list following SELECT
Variants§
UnnamedExpr(Expr)
Any expression, not followed by [ AS ] alias
ExprQualifiedWildcard(Expr, Vec<Ident>)
Expr is an arbitrary expression, returning either a table or a column.
Idents are the prefix of *
, which are consecutive field accesses.
e.g. (table.v1).*
or (table).v1.*
ExprWithAlias
An expression, followed by [ AS ] alias
QualifiedWildcard(ObjectName, Option<Vec<Expr>>)
alias.*
or even schema.table.*
followed by optional except
Wildcard(Option<Vec<Expr>>)
An unqualified *
, or * except (exprs)
Trait Implementations§
source§impl Clone for SelectItem
impl Clone for SelectItem
source§fn clone(&self) -> SelectItem
fn clone(&self) -> SelectItem
Returns a copy 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 Display for SelectItem
impl Display for SelectItem
source§impl Hash for SelectItem
impl Hash for SelectItem
source§impl PartialEq for SelectItem
impl PartialEq for SelectItem
impl Eq for SelectItem
impl StructuralPartialEq for SelectItem
Auto Trait Implementations§
impl Freeze for SelectItem
impl RefUnwindSafe for SelectItem
impl Send for SelectItem
impl Sync for SelectItem
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more