[][src]Struct postgres_parser::nodes::CoerceToDomain

pub struct CoerceToDomain {
    pub arg: Option<Box<Expr>>,
    pub resulttype: Oid,
    pub resulttypmod: i32,
    pub resultcollid: Oid,
    pub coercionformat: CoercionForm,
    pub location: i32,
}

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

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

Trait Implementations

impl Debug for CoerceToDomain[src]

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

impl Eq for CoerceToDomain[src]

impl PartialEq<CoerceToDomain> for CoerceToDomain[src]

impl Serialize 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> 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.