pub enum CreateTableConstraint {
PrimaryKey {
columns: Vec<String>,
},
Unique {
columns: Vec<String>,
},
ForeignKey {
columns: Vec<String>,
ref_table: String,
ref_columns: Vec<String>,
},
Check {
expression: PlanExpression,
},
}Expand description
Table constraint for CREATE TABLE.
Variants§
Trait Implementations§
Source§impl Clone for CreateTableConstraint
impl Clone for CreateTableConstraint
Source§fn clone(&self) -> CreateTableConstraint
fn clone(&self) -> CreateTableConstraint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CreateTableConstraint
impl RefUnwindSafe for CreateTableConstraint
impl Send for CreateTableConstraint
impl Sync for CreateTableConstraint
impl Unpin for CreateTableConstraint
impl UnsafeUnpin for CreateTableConstraint
impl UnwindSafe for CreateTableConstraint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more