Enum sqlite3_parser::ast::ColumnConstraint[][src]

pub enum ColumnConstraint {
    PrimaryKey {
        order: Option<SortOrder>,
        conflict_clause: Option<ResolveType>,
        auto_increment: bool,
    },
    NotNull {
        nullable: bool,
        conflict_clause: Option<ResolveType>,
    },
    Unique(Option<ResolveType>),
    Check(Expr),
    Default(Expr),
    Defer(DeferSubclause),
    Collate {
        collation_name: Name,
    },
    ForeignKey {
        clause: ForeignKeyClause,
        deref_clause: Option<DeferSubclause>,
    },
    Generated {
        expr: Expr,
        typ: Option<Id>,
    },
}

Variants

PrimaryKey

Fields of PrimaryKey

order: Option<SortOrder>conflict_clause: Option<ResolveType>auto_increment: bool
NotNull

Fields of NotNull

nullable: boolconflict_clause: Option<ResolveType>
Check(Expr)
Default(Expr)
Collate

Fields of Collate

collation_name: Name
ForeignKey

Fields of ForeignKey

clause: ForeignKeyClausederef_clause: Option<DeferSubclause>
Generated

Fields of Generated

expr: Exprtyp: Option<Id>

Trait Implementations

impl Clone for ColumnConstraint[src]

impl Debug for ColumnConstraint[src]

impl Eq for ColumnConstraint[src]

impl PartialEq<ColumnConstraint> for ColumnConstraint[src]

impl StructuralEq for ColumnConstraint[src]

impl StructuralPartialEq for ColumnConstraint[src]

impl ToTokens for ColumnConstraint[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.