[][src]Struct postgres_parser::sys::ResTarget

#[repr(C)]pub struct ResTarget {
    pub type_: NodeTag,
    pub name: *mut c_char,
    pub indirection: *mut List,
    pub val: *mut Node,
    pub location: c_int,
}

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

type_: NodeTagname: *mut c_charindirection: *mut List

column name or NULL

val: *mut Node

subscripts, field names, and '*', or NIL

location: c_int

the value expression to compute or assign

Trait Implementations

impl Debug for ResTarget[src]

impl Default for ResTarget[src]

impl Eq for ResTarget[src]

impl Hash for ResTarget[src]

impl PartialEq<ResTarget> 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> 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.