[][src]Struct postgres_parser::nodes::ResTarget

pub struct ResTarget {
    pub name: Option<String>,
    pub indirection: Option<Vec<Node>>,
    pub val: Option<Box<Node>>,
    pub location: i32,
}

ResTarget result target (used in target list of pretransformed parse trees)

In a SELECT target list, 'name' is the column label from an 'AS ColumnLabel' clause, or NULL if there was none, and 'val' is the value expression itself. The 'indirection' field is not used.

INSERT uses ResTarget in its targetcolumnnames list. Here, 'name' is the name of the destination column, 'indirection' stores any subscripts attached to the destination, and 'val' is not used.

In an UPDATE target list, 'name' is the name of the destination column, 'indirection' stores any subscripts attached to the destination, and 'val' is the expression to assign.

See A_Indirection for more info about what can appear in 'indirection'.

Fields

name: Option<String>indirection: Option<Vec<Node>>val: Option<Box<Node>>location: i32

Trait Implementations

impl Debug for ResTarget[src]

impl<'de> Deserialize<'de> for ResTarget[src]

impl Eq for ResTarget[src]

impl PartialEq<ResTarget> for ResTarget[src]

impl Serialize for ResTarget[src]

impl StructuralEq for ResTarget[src]

impl StructuralPartialEq for ResTarget[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.