Enum sqlite3_parser::ast::ColumnConstraint
source · [−]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
NotNull
Unique(Option<ResolveType>)
Check(Expr)
Default(Expr)
Defer(DeferSubclause)
Collate
Fields
collation_name: NameForeignKey
Generated
Trait Implementations
sourceimpl Clone for ColumnConstraint
impl Clone for ColumnConstraint
sourcefn clone(&self) -> ColumnConstraint
fn clone(&self) -> ColumnConstraint
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 ColumnConstraint
impl Debug for ColumnConstraint
sourceimpl PartialEq<ColumnConstraint> for ColumnConstraint
impl PartialEq<ColumnConstraint> for ColumnConstraint
sourcefn eq(&self, other: &ColumnConstraint) -> bool
fn eq(&self, other: &ColumnConstraint) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ColumnConstraint) -> bool
fn ne(&self, other: &ColumnConstraint) -> bool
This method tests for !=.
sourceimpl ToTokens for ColumnConstraint
impl ToTokens for ColumnConstraint
impl Eq for ColumnConstraint
impl StructuralEq for ColumnConstraint
impl StructuralPartialEq for ColumnConstraint
Auto Trait Implementations
impl RefUnwindSafe for ColumnConstraint
impl Send for ColumnConstraint
impl Sync for ColumnConstraint
impl Unpin for ColumnConstraint
impl UnwindSafe for ColumnConstraint
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