pub enum Projection {
All(Vec<String>),
Columns(Vec<ProjectedColumn>),
}Expand description
Projection specification for SELECT clauses.
Represents either all columns (after wildcard expansion) or specific columns.
Variants§
All(Vec<String>)
All columns (expanded from *).
Contains the list of column names in definition order.
Columns(Vec<ProjectedColumn>)
Specific columns/expressions.
Implementations§
Source§impl Projection
impl Projection
Sourcepub fn column_names(&self) -> Vec<Option<&str>>
pub fn column_names(&self) -> Vec<Option<&str>>
Returns the column names in the projection.
For Projection::All, all names are present (from the wildcard expansion).
For Projection::Columns, names may be None for complex expressions
without aliases. See ProjectedColumn::output_name for details.
Trait Implementations§
Source§impl Clone for Projection
impl Clone for Projection
Source§fn clone(&self) -> Projection
fn clone(&self) -> Projection
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 moreAuto Trait Implementations§
impl Freeze for Projection
impl RefUnwindSafe for Projection
impl Send for Projection
impl Sync for Projection
impl Unpin for Projection
impl UnwindSafe for Projection
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