Enum sea_schema::postgres::def::Constraint [−][src]
pub enum Constraint {
Check(Check),
NotNull(NotNull),
Unique(Unique),
PrimaryKey(PrimaryKey),
References(References),
Exclusion(Exclusion),
}
This is supported on crate features
postgres
and def
only.Expand description
An enum consisting of all constraints
Variants
Tuple Fields of Check
0: Check
Tuple Fields of NotNull
0: NotNull
Tuple Fields of Unique
0: Unique
Tuple Fields of PrimaryKey
0: PrimaryKey
Tuple Fields of References
0: References
Tuple Fields of Exclusion
0: Exclusion
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl UnwindSafe for Constraint
Blanket Implementations
Mutably borrows from an owned value. Read more