[][src]Struct postgres_parser::nodes::ConvertRowtypeExpr

pub struct ConvertRowtypeExpr {
    pub arg: Option<Box<Expr>>,
    pub resulttype: Oid,
    pub convertformat: CoercionForm,
    pub location: i32,
}

ConvertRowtypeExpr

ConvertRowtypeExpr represents a type coercion from one composite type to another, where the source type is guaranteed to contain all the columns needed for the destination type plus possibly others; the columns need not be in the same positions, but are matched up by name. This is primarily used to convert a wholerow value of an inheritance child table into a valid wholerow value of its parent table's rowtype. Both resulttype and the exposed type of "arg" must be named composite types (not domains).

Fields

arg: Option<Box<Expr>>resulttype: Oidconvertformat: CoercionFormlocation: i32

Trait Implementations

impl Debug for ConvertRowtypeExpr[src]

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

impl Eq for ConvertRowtypeExpr[src]

impl PartialEq<ConvertRowtypeExpr> for ConvertRowtypeExpr[src]

impl Serialize for ConvertRowtypeExpr[src]

impl StructuralEq for ConvertRowtypeExpr[src]

impl StructuralPartialEq for ConvertRowtypeExpr[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.