[][src]Struct postgres_parser::sys::TypeName

#[repr(C)]pub struct TypeName {
    pub type_: NodeTag,
    pub names: *mut List,
    pub typeOid: Oid,
    pub setof: bool,
    pub pct_type: bool,
    pub typmods: *mut List,
    pub typemod: int32,
    pub arrayBounds: *mut List,
    pub location: c_int,
}

TypeName specifies a type in definitions

For TypeName structures generated internally, it is often easier to specify the type by OID than by name. If "names" is NIL then the actual type OID is given by typeOid, otherwise typeOid is unused. Similarly, if "typmods" is NIL then the actual typmod is expected to be prespecified in typemod, otherwise typemod is unused.

If pct_type is true, then names is actually a field name and we look up the type of that field. Otherwise (the normal case), names is a type name possibly qualified with schema and database name.

Fields

type_: NodeTagnames: *mut ListtypeOid: Oid

qualified name (list of Value strings)

setof: bool

type identified by OID

pct_type: bool

is a set?

typmods: *mut List

%TYPE specified?

typemod: int32

type modifier expression(s)

arrayBounds: *mut List

prespecified type modifier

location: c_int

array bounds

Trait Implementations

impl Debug for TypeName[src]

impl Default for TypeName[src]

impl Eq for TypeName[src]

impl Hash for TypeName[src]

impl PartialEq<TypeName> for TypeName[src]

impl StructuralEq for TypeName[src]

impl StructuralPartialEq for TypeName[src]

Auto Trait Implementations

impl RefUnwindSafe for TypeName

impl !Send for TypeName

impl !Sync for TypeName

impl Unpin for TypeName

impl UnwindSafe for TypeName

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.