pub enum TableConstraintType<'a> {
Unique {
unique_span: Span,
nulls_clause: Option<(Span, Option<Span>)>,
cols: Vec<Identifier<'a>>,
},
PrimaryKey {
primary_span: Span,
key_span: Span,
cols: Vec<Identifier<'a>>,
},
Check {
check_span: Span,
expr: Expression<'a>,
},
}Expand description
Table constraint types for ADD CONSTRAINT
Variants§
Trait Implementations§
Source§impl<'a> Clone for TableConstraintType<'a>
impl<'a> Clone for TableConstraintType<'a>
Source§fn clone(&self) -> TableConstraintType<'a>
fn clone(&self) -> TableConstraintType<'a>
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<'a> Freeze for TableConstraintType<'a>
impl<'a> RefUnwindSafe for TableConstraintType<'a>
impl<'a> Send for TableConstraintType<'a>
impl<'a> Sync for TableConstraintType<'a>
impl<'a> Unpin for TableConstraintType<'a>
impl<'a> UnsafeUnpin for TableConstraintType<'a>
impl<'a> UnwindSafe for TableConstraintType<'a>
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