pub enum SQLTableConstraint {
PrimaryKey(Vec<String>),
Unique(Vec<String>),
ForeignKey {
columns: Vec<String>,
ref_table: String,
ref_columns: Vec<String>,
on_delete: Option<SQLForeignKeyAction>,
on_update: Option<SQLForeignKeyAction>,
},
Check(String),
}Variants§
PrimaryKey(Vec<String>)
Unique(Vec<String>)
ForeignKey
Check(String)
Implementations§
Trait Implementations§
Source§impl Clone for SQLTableConstraint
impl Clone for SQLTableConstraint
Source§fn clone(&self) -> SQLTableConstraint
fn clone(&self) -> SQLTableConstraint
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 SQLTableConstraint
impl RefUnwindSafe for SQLTableConstraint
impl Send for SQLTableConstraint
impl Sync for SQLTableConstraint
impl Unpin for SQLTableConstraint
impl UnsafeUnpin for SQLTableConstraint
impl UnwindSafe for SQLTableConstraint
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