[][src]Struct postgres_parser::sys::CoerceToDomain

#[repr(C)]pub struct CoerceToDomain {
    pub xpr: Expr,
    pub arg: *mut Expr,
    pub resulttype: Oid,
    pub resulttypmod: int32,
    pub resultcollid: Oid,
    pub coercionformat: CoercionForm,
    pub location: c_int,
}

CoerceToDomain

CoerceToDomain represents the operation of coercing a value to a domain type. At runtime (and not before) the precise set of constraints to be checked will be determined. If the value passes, it is returned as the result; if not, an error is raised. Note that this is equivalent to RelabelType in the scenario where no constraints are applied.

Fields

xpr: Exprarg: *mut Exprresulttype: Oid

input expression

resulttypmod: int32

domain type ID (result type)

resultcollid: Oid

output typmod (currently always 1)

coercionformat: CoercionForm

OID of collation, or InvalidOid if none

location: c_int

how to display this node

Trait Implementations

impl Debug for CoerceToDomain[src]

impl Default for CoerceToDomain[src]

impl Eq for CoerceToDomain[src]

impl Hash for CoerceToDomain[src]

impl PartialEq<CoerceToDomain> for CoerceToDomain[src]

impl StructuralEq for CoerceToDomain[src]

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