[−][src]Struct postgres_parser::nodes::ResTarget
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for ResTarget
[src]
impl PartialEq<ResTarget> for ResTarget
[src]
impl Serialize for ResTarget
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for ResTarget
[src]
impl StructuralPartialEq for ResTarget
[src]
Auto Trait Implementations
impl RefUnwindSafe for ResTarget
impl Send for ResTarget
impl Sync for ResTarget
impl Unpin for ResTarget
impl UnwindSafe for ResTarget
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,