pub enum Constraint {
Check(Check),
NotNull(NotNull),
Unique(Unique),
PrimaryKey(PrimaryKey),
References(References),
Exclusion(Exclusion),
}
Available on crate features
postgres
and def
only.Expand description
An enum consisting of all constraints
Variantsยง
Check(Check)
NotNull(NotNull)
Unique(Unique)
PrimaryKey(PrimaryKey)
References(References)
Exclusion(Exclusion)
Trait Implementationsยง
Sourceยงimpl Clone for Constraint
impl Clone for Constraint
Sourceยงfn clone(&self) -> Constraint
fn clone(&self) -> Constraint
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 moreSourceยงimpl Debug for Constraint
impl Debug for Constraint
Sourceยงimpl PartialEq for Constraint
impl PartialEq for Constraint
impl StructuralPartialEq for Constraint
Auto Trait Implementationsยง
impl Freeze for Constraint
impl RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl UnwindSafe for Constraint
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