[][src]Struct postgres_parser::nodes::IndexElem

pub struct IndexElem {
    pub name: Option<String>,
    pub expr: Option<Box<Node>>,
    pub indexcolname: Option<String>,
    pub collation: Option<Vec<Node>>,
    pub opclass: Option<Vec<Node>>,
    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

name: Option<String>expr: Option<Box<Node>>indexcolname: Option<String>collation: Option<Vec<Node>>opclass: Option<Vec<Node>>ordering: SortByDirnulls_ordering: SortByNulls

Trait Implementations

impl Debug for IndexElem[src]

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

impl Eq for IndexElem[src]

impl PartialEq<IndexElem> for IndexElem[src]

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