pub enum SchemaConstraintKind {
PrimaryKey {
columns: Vec<String>,
},
Unique {
columns: Vec<String>,
index_name: String,
},
ForeignKey {
columns: Vec<String>,
referenced_table: String,
referenced_columns: Vec<String>,
on_delete: ForeignKeyAction,
on_update: ForeignKeyAction,
},
Check {
column_name: Option<String>,
expression: String,
ordinal: u32,
},
}Expand description
Complete, catalog-visible constraint metadata.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SchemaConstraintKind
impl Clone for SchemaConstraintKind
Source§fn clone(&self) -> SchemaConstraintKind
fn clone(&self) -> SchemaConstraintKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchemaConstraintKind
impl Debug for SchemaConstraintKind
impl Eq for SchemaConstraintKind
Source§impl PartialEq for SchemaConstraintKind
impl PartialEq for SchemaConstraintKind
impl StructuralPartialEq for SchemaConstraintKind
Auto Trait Implementations§
impl Freeze for SchemaConstraintKind
impl RefUnwindSafe for SchemaConstraintKind
impl Send for SchemaConstraintKind
impl Sync for SchemaConstraintKind
impl Unpin for SchemaConstraintKind
impl UnsafeUnpin for SchemaConstraintKind
impl UnwindSafe for SchemaConstraintKind
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