Enum sqlite3_parser::ast::TableConstraint
source · [−]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
Unique
Check(Expr)
ForeignKey
Trait Implementations
sourceimpl Clone for TableConstraint
impl Clone for TableConstraint
sourcefn clone(&self) -> TableConstraint
fn clone(&self) -> TableConstraint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TableConstraint
impl Debug for TableConstraint
sourceimpl PartialEq<TableConstraint> for TableConstraint
impl PartialEq<TableConstraint> for TableConstraint
sourcefn eq(&self, other: &TableConstraint) -> bool
fn eq(&self, other: &TableConstraint) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TableConstraint) -> bool
fn ne(&self, other: &TableConstraint) -> bool
This method tests for !=.
sourceimpl ToTokens for TableConstraint
impl ToTokens for TableConstraint
impl Eq for TableConstraint
impl StructuralEq for TableConstraint
impl StructuralPartialEq for TableConstraint
Auto Trait Implementations
impl RefUnwindSafe for TableConstraint
impl Send for TableConstraint
impl Sync for TableConstraint
impl Unpin for TableConstraint
impl UnwindSafe for TableConstraint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more