Enum gluesql::core::ast_builder::SelectItemNode
source · pub enum SelectItemNode<'a> {
SelectItem(SelectItem),
Expr(ExprNode<'a>),
Text(String),
ExprWithAliasNode(ExprWithAliasNode<'a>),
}
Variants§
Trait Implementations§
source§impl<'a> Clone for SelectItemNode<'a>
impl<'a> Clone for SelectItemNode<'a>
source§fn clone(&self) -> SelectItemNode<'a>
fn clone(&self) -> SelectItemNode<'a>
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<'a> Debug for SelectItemNode<'a>
impl<'a> Debug for SelectItemNode<'a>
source§impl<'a> From<&str> for SelectItemNode<'a>
impl<'a> From<&str> for SelectItemNode<'a>
source§fn from(select_item: &str) -> SelectItemNode<'a>
fn from(select_item: &str) -> SelectItemNode<'a>
Converts to this type from the input type.
source§impl<'a> From<ExprNode<'a>> for SelectItemNode<'a>
impl<'a> From<ExprNode<'a>> for SelectItemNode<'a>
source§fn from(expr_node: ExprNode<'a>) -> SelectItemNode<'a>
fn from(expr_node: ExprNode<'a>) -> SelectItemNode<'a>
Converts to this type from the input type.
source§impl<'a> From<ExprWithAliasNode<'a>> for SelectItemNode<'a>
impl<'a> From<ExprWithAliasNode<'a>> for SelectItemNode<'a>
source§fn from(expr_node: ExprWithAliasNode<'a>) -> SelectItemNode<'a>
fn from(expr_node: ExprWithAliasNode<'a>) -> SelectItemNode<'a>
Converts to this type from the input type.
source§impl<'a> From<SelectItem> for SelectItemNode<'a>
impl<'a> From<SelectItem> for SelectItemNode<'a>
source§fn from(select_item: SelectItem) -> SelectItemNode<'a>
fn from(select_item: SelectItem) -> SelectItemNode<'a>
Converts to this type from the input type.
source§impl<'a> TryFrom<SelectItemNode<'a>> for SelectItem
impl<'a> TryFrom<SelectItemNode<'a>> for SelectItem
source§fn try_from(select_item_node: SelectItemNode<'a>) -> Result<SelectItem, Error>
fn try_from(select_item_node: SelectItemNode<'a>) -> Result<SelectItem, Error>
Performs the conversion.
Auto Trait Implementations§
impl<'a> Freeze for SelectItemNode<'a>
impl<'a> RefUnwindSafe for SelectItemNode<'a>
impl<'a> Send for SelectItemNode<'a>
impl<'a> Sync for SelectItemNode<'a>
impl<'a> Unpin for SelectItemNode<'a>
impl<'a> UnwindSafe for SelectItemNode<'a>
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
)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