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
PrimaryKey
Fields of PrimaryKey
order: Option<SortOrder> | |
conflict_clause: Option<ResolveType> | |
auto_increment: bool |
NotNull
Fields of NotNull
nullable: bool | |
conflict_clause: Option<ResolveType> |
Unique(Option<ResolveType>)
Check(Expr)
Default(DefaultValue)
Collate
Fields of Collate
collation_name: String |
ForeignKey
Fields of ForeignKey
clause: ForeignKeyClause | |
deref_clause: Option<DeferSubclause> |
Trait Implementations
impl Clone for ColumnConstraint
[src]
fn clone(&self) -> ColumnConstraint
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for ColumnConstraint
[src]
impl PartialEq for ColumnConstraint
[src]
fn eq(&self, __arg_0: &ColumnConstraint) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ColumnConstraint) -> bool
This method tests for !=
.