[][src]Struct postgres_parser::nodes::ArrayCoerceExpr

pub struct ArrayCoerceExpr {
    pub arg: Option<Box<Expr>>,
    pub elemexpr: Option<Box<Expr>>,
    pub resulttype: Oid,
    pub resulttypmod: i32,
    pub resultcollid: Oid,
    pub coerceformat: CoercionForm,
    pub location: i32,
}

ArrayCoerceExpr

ArrayCoerceExpr represents a type coercion from one array type to another, which is implemented by applying the perelement coercion expression "elemexpr" to each element of the source array. Within elemexpr, the source element is represented by a CaseTestExpr node. Note that even if elemexpr is a noop (that is, just CaseTestExpr + RelabelType), the coercion still requires some effort: we have to fix the element type OID stored in the array header.

Fields

arg: Option<Box<Expr>>elemexpr: Option<Box<Expr>>resulttype: Oidresulttypmod: i32resultcollid: Oidcoerceformat: CoercionFormlocation: i32

Trait Implementations

impl Debug for ArrayCoerceExpr[src]

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

impl Eq for ArrayCoerceExpr[src]

impl PartialEq<ArrayCoerceExpr> for ArrayCoerceExpr[src]

impl Serialize for ArrayCoerceExpr[src]

impl StructuralEq for ArrayCoerceExpr[src]

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