Enum sea_schema::postgres::def::Constraint
source · 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 copy 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<Constraint> for Constraint
impl PartialEq<Constraint> for Constraint
source§fn eq(&self, other: &Constraint) -> bool
fn eq(&self, other: &Constraint) -> bool
This method tests for
self and other values to be equal, and is used
by ==.