[][src]Struct postgres_parser::sys::IndexElem

#[repr(C)]pub struct IndexElem {
    pub type_: NodeTag,
    pub name: *mut c_char,
    pub expr: *mut Node,
    pub indexcolname: *mut c_char,
    pub collation: *mut List,
    pub opclass: *mut List,
    pub ordering: SortByDir,
    pub nulls_ordering: SortByNulls,
}

IndexElem index parameters (used in CREATE INDEX, and in ON CONFLICT)

For a plain index attribute, 'name' is the name of the table column to index, and 'expr' is NULL. For an index expression, 'name' is NULL and 'expr' is the expression tree.

Fields

type_: NodeTagname: *mut c_charexpr: *mut Node

name of attribute to index, or NULL

indexcolname: *mut c_char

expression to index, or NULL

collation: *mut List

name for index column; NULL = default

opclass: *mut List

name of collation; NIL = default

ordering: SortByDir

name of desired opclass; NIL = default

nulls_ordering: SortByNulls

ASC/DESC/default

Trait Implementations

impl Debug for IndexElem[src]

impl Default for IndexElem[src]

impl Eq for IndexElem[src]

impl Hash for IndexElem[src]

impl PartialEq<IndexElem> for IndexElem[src]

impl StructuralEq for IndexElem[src]

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