Struct sqlparser::ast::ExprWithAlias
source · pub struct ExprWithAlias {
pub expr: Expr,
pub alias: Option<Ident>,
}
Expand description
An expression optionally followed by an alias.
Example:
42 AS myint
Fields§
§expr: Expr
§alias: Option<Ident>
Trait Implementations§
source§impl Clone for ExprWithAlias
impl Clone for ExprWithAlias
source§fn clone(&self) -> ExprWithAlias
fn clone(&self) -> ExprWithAlias
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 ExprWithAlias
impl Debug for ExprWithAlias
source§impl<'de> Deserialize<'de> for ExprWithAlias
impl<'de> Deserialize<'de> for ExprWithAlias
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 Display for ExprWithAlias
impl Display for ExprWithAlias
source§impl Hash for ExprWithAlias
impl Hash for ExprWithAlias
source§impl Ord for ExprWithAlias
impl Ord for ExprWithAlias
source§fn cmp(&self, other: &ExprWithAlias) -> Ordering
fn cmp(&self, other: &ExprWithAlias) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ExprWithAlias
impl PartialEq for ExprWithAlias
source§impl PartialOrd for ExprWithAlias
impl PartialOrd for ExprWithAlias
source§impl Serialize for ExprWithAlias
impl Serialize for ExprWithAlias
source§impl Visit for ExprWithAlias
impl Visit for ExprWithAlias
source§impl VisitMut for ExprWithAlias
impl VisitMut for ExprWithAlias
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
impl Eq for ExprWithAlias
impl StructuralPartialEq for ExprWithAlias
Auto Trait Implementations§
impl Freeze for ExprWithAlias
impl RefUnwindSafe for ExprWithAlias
impl Send for ExprWithAlias
impl Sync for ExprWithAlias
impl Unpin for ExprWithAlias
impl UnwindSafe for ExprWithAlias
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
)