Enum sqlite3_parser::ast::TableConstraint[][src]

pub enum TableConstraint {
    PrimaryKey {
        columns: Vec<SortedColumn>,
        auto_increment: bool,
        conflict_clause: Option<ResolveType>,
    },
    Unique {
        columns: Vec<SortedColumn>,
        conflict_clause: Option<ResolveType>,
    },
    Check(Expr),
    ForeignKey {
        columns: Vec<IndexedColumn>,
        clause: ForeignKeyClause,
        deref_clause: Option<DeferSubclause>,
    },
}

Variants

PrimaryKey

Fields of PrimaryKey

columns: Vec<SortedColumn>auto_increment: boolconflict_clause: Option<ResolveType>
Unique

Fields of Unique

columns: Vec<SortedColumn>conflict_clause: Option<ResolveType>
Check(Expr)
ForeignKey

Fields of ForeignKey

columns: Vec<IndexedColumn>clause: ForeignKeyClausederef_clause: Option<DeferSubclause>

Trait Implementations

impl Clone for TableConstraint[src]

impl Debug for TableConstraint[src]

impl Eq for TableConstraint[src]

impl PartialEq<TableConstraint> for TableConstraint[src]

impl StructuralEq for TableConstraint[src]

impl StructuralPartialEq for TableConstraint[src]

impl ToTokens for TableConstraint[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.