Enum sqlpop::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(DefaultValue),
    Collate {
        collation_name: String,
    },
    ForeignKey {
        clause: ForeignKeyClause,
        deref_clause: Option<DeferSubclause>,
    },
}

Variants

Fields of PrimaryKey

Fields of NotNull

Fields of Collate

Fields of ForeignKey

Trait Implementations

impl Clone for ColumnConstraint
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ColumnConstraint
[src]

Formats the value using the given formatter.

impl PartialEq for ColumnConstraint
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ColumnConstraint
[src]